39 Commits

Author SHA1 Message Date
6145e00769 ready4
All checks were successful
Main Build Process / Build & Test (pull_request) Successful in 1m40s
Main Build Process / Build & Test (push) Successful in 1m44s
2024-08-29 19:29:24 +02:00
20dd1d3a69 ready3
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 47s
2024-08-29 19:23:56 +02:00
653ccf8399 ready2
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 0s
2024-08-29 18:59:27 +02:00
8cc895649b ready
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 1m30s
2024-08-29 18:49:55 +02:00
f520cf2496 suite7
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m20s
Main Build Process / Build & Test (pull_request) Failing after 1m56s
2024-08-26 23:39:40 +02:00
9729989ee6 suite7
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m38s
Main Build Process / Build & Test (pull_request) Failing after 1m35s
2024-08-26 23:34:44 +02:00
6e38a4ae49 suite6
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m22s
Main Build Process / Build & Test (pull_request) Successful in 2m33s
2024-08-26 23:01:59 +02:00
a57e0e0924 suite6
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m31s
Main Build Process / Build & Test (pull_request) Failing after 1m28s
2024-08-26 22:58:10 +02:00
9cc5e31ba1 suite5
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m14s
Main Build Process / Build & Test (pull_request) Failing after 1m58s
2024-08-26 22:31:45 +02:00
e3b62eed14 suite5
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m24s
Main Build Process / Build & Test (pull_request) Failing after 2m3s
2024-08-26 22:23:28 +02:00
646d6b7ab7 suite4
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m15s
Main Build Process / Build & Test (pull_request) Failing after 1m54s
2024-08-26 22:13:11 +02:00
dd38a0f22d suite4
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m23s
Main Build Process / Build & Test (pull_request) Successful in 2m16s
2024-08-26 22:07:59 +02:00
9f7333c8a4 suite4
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m13s
Main Build Process / Build & Test (pull_request) Successful in 1m56s
2024-08-26 22:00:13 +02:00
00288f275f suite4
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m32s
2024-08-26 21:58:09 +02:00
c8f34c9fcd suite4
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m34s
2024-08-26 21:55:27 +02:00
afac94fc71 suite4
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 2m6s
Main Build Process / Build & Test (pull_request) Failing after 1m53s
2024-08-26 21:40:28 +02:00
218e7ea9af suite4
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m15s
Main Build Process / Build & Test (pull_request) Failing after 2m35s
2024-08-26 21:31:52 +02:00
2450e4370c suite3
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m34s
Main Build Process / Build & Test (pull_request) Failing after 2m32s
2024-08-26 16:48:43 +02:00
85b12b1d4b suite3
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m45s
Main Build Process / Build & Test (pull_request) Failing after 1m55s
2024-08-26 16:43:06 +02:00
96bc3c546a suite3
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 11m49s
dotnet package / build (8.0.x) (push) Successful in 1m14s
2024-08-26 16:29:17 +02:00
8e6262d4d5 suite3
Some checks failed
dotnet package / build (8.0.x) (push) Has been cancelled
Main Build Process / Build & Test (pull_request) Failing after 11m38s
2024-08-26 16:03:48 +02:00
097b7e4340 suite3
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m11s
Main Build Process / Build & Test (pull_request) Has been cancelled
2024-08-26 15:55:00 +02:00
857a618e40 suite3
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m11s
Main Build Process / Build & Test (pull_request) Failing after 11m21s
2024-08-26 15:47:02 +02:00
069360992c suite3
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m22s
Main Build Process / Build & Test (pull_request) Has been cancelled
2024-08-26 15:35:17 +02:00
8b7a2559a7 suite2 2024-08-26 15:32:22 +02:00
59cbfa4738 suite2 2024-08-26 15:29:03 +02:00
d109ac8532 suite2
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 11m8s
2024-08-26 14:59:51 +02:00
f8a20643c6 suite2
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 8s
2024-08-26 14:43:21 +02:00
94100940c2 suite2
Some checks failed
Main Build Process / Build & Test (pull_request) Has been cancelled
2024-08-26 14:39:51 +02:00
3d7e6f0970 suite2
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 13m16s
2024-08-26 14:23:31 +02:00
73256fcba9 suite
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 2m18s
2024-08-26 00:18:50 +02:00
633801c8a4 suite
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 1m43s
2024-08-26 00:16:42 +02:00
8f9eefdedf suite
Some checks failed
Main Build Process / Build & Test (pull_request) Failing after 2m6s
2024-08-26 00:02:55 +02:00
f232126f0d suite
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m16s
Main Build Process / Build & Test (pull_request) Failing after 2m27s
2024-08-25 23:56:46 +02:00
a0ef7be672 suite
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m33s
Main Build Process / Build & Test (pull_request) Failing after 2m5s
2024-08-25 23:50:31 +02:00
582759b31e suite
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m41s
Main Build Process / Build & Test (pull_request) Failing after 2m12s
2024-08-25 23:31:42 +02:00
cdeab78d43 suite
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m18s
Main Build Process / Build & Test (pull_request) Failing after 2m9s
2024-08-25 23:24:17 +02:00
f7eb584b91 suite
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m23s
Main Build Process / Build & Test (pull_request) Failing after 2m11s
2024-08-25 23:18:35 +02:00
966a82c4fc build + test
Some checks failed
dotnet package / build (8.0.x) (push) Successful in 1m39s
Main Build Process / Build & Test (pull_request) Failing after 55s
2024-08-25 23:13:21 +02:00
3 changed files with 83 additions and 24 deletions

View File

@@ -0,0 +1,82 @@
name: "Main Build Process"
# Runs on main branch commits,
# every commit in a pull request, any published release.
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types: [published]
env:
REGISTRY: gitea.borealian.ovh
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: "Build & Test"
# Permissions this GitHub Action needs for other things in GitHub
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
- name: "Restore/Build/Test"
run: |
dotnet test ./src/LittleTown.sln --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" --logger:"trx;LogFileName=test_results.xml"
- name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them.
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8
with:
reports: "**/*.cobertura.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
targetdir: "${{ github.workspace }}" # REQUIRED # The directory where the generated report should be saved.
reporttypes: "Cobertura" # The output formats and scope (separated by semicolon) Values: Badges, Clover, Cobertura, CsvSummary, Html, Html_Dark, Html_Light, Html_BlueRed, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlInline_AzurePipelines_Light, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MarkdownSummary, MarkdownSummaryGithub, MarkdownDeltaSummary, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, TextDeltaSummary, Xml, XmlSummary
verbosity: "Info" # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off
title: "Code Coverage" # Optional title.
tag: "${{ github.run_number }}_${{ github.run_id }}" # Optional tag or build version.
customSettings: "" # Optional custom settings (separated by semicolon). See: https://github.com/danielpalme/ReportGenerator/wiki/Settings.
toolpath: "reportgeneratortool" # Default directory for installing the dotnet tool.
- name: Upload Combined Coverage XML
uses: actions/upload-artifact@v3
with:
name: coverage
path: ${{ github.workspace }}/Cobertura.xml
retention-days: 5
- name: Publish Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: "Cobertura.xml"
badge: true
fail_below_min: false # just informative for now
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: "10 30"
- name: Comment on Gitea PR
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: https://gitea.borealian.ovh
REPO_OWNER: mcmuzzle
REPO_NAME: LittleTown
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
COMMENT_CONTENT=$(cat code-coverage-results.md)
curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"body\": \"${COMMENT_CONTENT}\"}" \
${GITEA_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/issues/${PR_NUMBER}/comments

View File

@@ -1,24 +0,0 @@
name: dotnet package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '8.0.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore ./src/LittleTown.sln
- name: Build
run: dotnet build ./src/LittleTown.sln
- name: Test with the dotnet CLI
run: dotnet test ./src/LittleTown.sln

View File

@@ -12,6 +12,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper" Version="13.0.1" /> <PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="xunit" Version="2.4.2" /> <PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>