From 24471846f4848851b28d476a5ce85daee418ab24 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Fri, 16 May 2025 22:27:24 +0200 Subject: [PATCH 01/15] :construction_worker: streamline pipeline --- .github/workflows/pipelines.yml | 146 ++++++++------------------------ 1 file changed, 37 insertions(+), 109 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 77c9849d3..4e9256579 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -18,10 +18,13 @@ on: - Debug - Release +permissions: + contents: read + jobs: prepare_linux: name: ๐Ÿง Prepare Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 15 outputs: restoreCacheKey: ${{ steps.dotnet-restore.outputs.restoreCacheKey }} @@ -63,7 +66,7 @@ jobs: build: name: ๐Ÿ› ๏ธ Build - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 15 strategy: matrix: @@ -156,7 +159,7 @@ jobs: pack: name: ๐Ÿ“ฆ Pack - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 15 strategy: matrix: @@ -185,7 +188,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, windows-2022] + os: [ubuntu-24.04, windows-2022] configuration: [Debug, Release] project: ${{ fromJson(needs.build.outputs.testProjects) }} runs-on: ${{ matrix.os }} @@ -230,115 +233,40 @@ jobs: command: down sonarcloud: - name: ๐Ÿ”ฌ Code Quality Analysis - needs: [prepare_linux, build, test] - runs-on: ubuntu-22.04 - timeout-minutes: 25 - steps: - - name: Checkout - uses: codebeltnet/git-checkout@v1 - - - name: Install .NET - uses: codebeltnet/install-dotnet@v1 - with: - includePreview: true - - - name: Install .NET Tool - Sonar Scanner - uses: codebeltnet/dotnet-tool-install-sonarscanner@v1 - - - name: Restore Dependencies - uses: codebeltnet/dotnet-restore@v2 - with: - useRestoreCache: true - restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} - - - name: Download cuemon.snk file - uses: codebeltnet/gcp-download-file@v1 - with: - serviceAccountKey: ${{ secrets.GCP_TOKEN }} - bucketName: ${{ secrets.GCP_BUCKETNAME }} - objectName: cuemon.snk - - - name: Run SonarCloud Analysis - uses: codebeltnet/sonarcloud-scan@v1 - with: - token: ${{ secrets.SONAR_TOKEN }} - organization: geekle - projectKey: Cuemon - version: ${{ needs.build.outputs.version }} - - - name: Build - uses: codebeltnet/dotnet-build@v2 - with: - uploadBuildArtifact: false - - - name: Finalize SonarCloud Analysis - uses: codebeltnet/sonarcloud-scan-finalize@v1 - with: - token: ${{ secrets.SONAR_TOKEN }} + name: call-sonarcloud + needs: [build,test] + uses: codebeltnet/jobs-sonarcloud/.github/workflows/default.yml@v1 + with: + organization: geekle + projectKey: Cuemon + version: ${{ needs.build.outputs.version }} + secrets: inherit codecov: - name: ๐Ÿ“Š Code Coverage Analysis - needs: [build, test] - runs-on: ubuntu-22.04 - timeout-minutes: 15 - steps: - - name: Checkout - uses: codebeltnet/git-checkout@v1 - - - name: Run CodeCov Analysis - uses: codebeltnet/codecov-scan@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - repository: gimlichael/Cuemon + name: call-codecov + needs: [build,test] + uses: codebeltnet/jobs-codecov/.github/workflows/default.yml@v1 + with: + repository: gimlichael/Cuemon + secrets: inherit codeql: - name: ๐Ÿ›ก๏ธ Security Analysis - needs: [prepare_linux, build, test] - runs-on: ubuntu-22.04 - timeout-minutes: 15 - steps: - - name: Checkout - uses: codebeltnet/git-checkout@v1 - - - name: Install .NET - uses: codebeltnet/install-dotnet@v1 - with: - includePreview: true - - - name: Restore Dependencies - uses: codebeltnet/dotnet-restore@v2 - with: - useRestoreCache: true - restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} - - - name: Prepare CodeQL SAST Analysis - uses: codebeltnet/codeql-scan@v1 - - - name: Download cuemon.snk file - uses: codebeltnet/gcp-download-file@v1 - with: - serviceAccountKey: ${{ secrets.GCP_TOKEN }} - bucketName: ${{ secrets.GCP_BUCKETNAME }} - objectName: cuemon.snk - - - name: Build - uses: codebeltnet/dotnet-build@v2 - with: - uploadBuildArtifact: false - - - name: Finalize CodeQL SAST Analysis - uses: codebeltnet/codeql-scan-finalize@v1 + name: call-codeql + needs: [build,test] + uses: codebeltnet/jobs-codeql/.github/workflows/default.yml@v1 + permissions: + security-events: write deploy: if: github.event_name != 'pull_request' - name: ๐Ÿš€ Deploy v${{ needs.build.outputs.version }} - runs-on: ubuntu-22.04 - timeout-minutes: 15 - needs: [build, pack, test, sonarcloud, codecov, codeql] - environment: Production - steps: - - uses: codebeltnet/nuget-push@v1 - with: - token: ${{ secrets.NUGET_TOKEN }} - configuration: ${{ inputs.configuration == '' && 'Release' || inputs.configuration }} + name: call-nuget + needs: [build,pack,test,sonarcloud,codecov,codeql] + uses: codebeltnet/jobs-nuget/.github/workflows/default.yml@v1 + with: + version: ${{ needs.build.outputs.version }} + environment: Production + configuration: ${{ inputs.configuration == '' && 'Release' || inputs.configuration }} + permissions: + contents: write + packages: write + secrets: inherit From 26a13b256ca7df967784f8f314d67daac4831927 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Fri, 16 May 2025 23:31:03 +0200 Subject: [PATCH 02/15] :bug: cannot use secrets: inherit due to cross-organization (https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idsecretsinherit) --- .github/workflows/pipelines.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 4e9256579..fdd021955 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -240,7 +240,8 @@ jobs: organization: geekle projectKey: Cuemon version: ${{ needs.build.outputs.version }} - secrets: inherit + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} codecov: name: call-codecov @@ -248,7 +249,8 @@ jobs: uses: codebeltnet/jobs-codecov/.github/workflows/default.yml@v1 with: repository: gimlichael/Cuemon - secrets: inherit + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} codeql: name: call-codeql @@ -269,4 +271,5 @@ jobs: permissions: contents: write packages: write - secrets: inherit + secrets: + NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} From ba8fed6a85b7b09b034bd20eadfe31c752d5a9d0 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Mon, 19 May 2025 22:35:57 +0200 Subject: [PATCH 03/15] :twisted_rightwards_arrows: aligned with codebeltnet/jobs-dotnet/.github/workflows/build.yml --- .github/workflows/pipelines.yml | 103 +++++++------------------------- 1 file changed, 20 insertions(+), 83 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index fdd021955..609e61125 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -64,92 +64,15 @@ jobs: with: useRestoreCache: true - build: - name: ๐Ÿ› ๏ธ Build + prepare_test: + name: ๐Ÿ“œ Prepare Test runs-on: ubuntu-24.04 - timeout-minutes: 15 - strategy: - matrix: - configuration: [Debug, Release] - framework: [net9.0, net8.0, netstandard2.1, netstandard2.0] - needs: [prepare_linux] + timeout-minutes: 5 outputs: - version: ${{ steps.minver-calculate.outputs.version }} - projects: ${{ steps.projects.outputs.result }} - testProjects: ${{ steps.test-projects.outputs.result }} + json: ${{ steps.test-projects.outputs.result }} steps: - name: Checkout uses: codebeltnet/git-checkout@v1 - - - name: Install .NET - uses: codebeltnet/install-dotnet@v1 - with: - includePreview: true - - - name: Install MinVer - uses: codebeltnet/dotnet-tool-install-minver@v1 - - - id: minver-calculate - name: Calculate Version - uses: codebeltnet/minver-calculate@v2 - - - name: Download cuemon.snk file - uses: codebeltnet/gcp-download-file@v1 - with: - serviceAccountKey: ${{ secrets.GCP_TOKEN }} - bucketName: ${{ secrets.GCP_BUCKETNAME }} - objectName: cuemon.snk - - - id: projects - name: Set environment variable for projects - run: | - if [ "${{ matrix.framework }}" == "netstandard2.1" ]; then - echo "result=src/**/Cuemon.Extensions.IO.csproj src/**/Cuemon.IO.csproj" >> $GITHUB_OUTPUT - elif [ "${{ matrix.framework }}" == "netstandard2.0" ]; then - projects=( - "src/**/Cuemon.Core.csproj" - "src/**/Cuemon.Data.csproj" - "src/**/Cuemon.Data.Integrity.csproj" - "src/**/Cuemon.Data.SqlClient.csproj" - "src/**/Cuemon.Diagnostics.csproj" - "src/**/Cuemon.Extensions.Collections.Generic.csproj" - "src/**/Cuemon.Extensions.Collections.Specialized.csproj" - "src/**/Cuemon.Extensions.Core.csproj" - "src/**/Cuemon.Extensions.Data.csproj" - "src/**/Cuemon.Extensions.Data.Integrity.csproj" - "src/**/Cuemon.Extensions.DependencyInjection.csproj" - "src/**/Cuemon.Extensions.Diagnostics.csproj" - "src/**/Cuemon.Extensions.Hosting.csproj" - "src/**/Cuemon.Extensions.IO.csproj" - "src/**/Cuemon.Extensions.Net.csproj" - "src/**/Cuemon.Extensions.Reflection.csproj" - "src/**/Cuemon.Extensions.Runtime.Caching.csproj" - "src/**/Cuemon.Extensions.Text.csproj" - "src/**/Cuemon.Extensions.Text.Json.csproj" - "src/**/Cuemon.Extensions.Threading.csproj" - "src/**/Cuemon.Extensions.Xml.csproj" - "src/**/Cuemon.IO.csproj" - "src/**/Cuemon.Net.csproj" - "src/**/Cuemon.Resilience.csproj" - "src/**/Cuemon.Runtime.Caching.csproj" - "src/**/Cuemon.Security.Cryptography.csproj" - "src/**/Cuemon.Threading.csproj" - "src/**/Cuemon.Xml.csproj" - ) - echo "result=$(IFS=' '; echo "${projects[*]}")" >> $GITHUB_OUTPUT - else - echo "result=src/**/*.csproj" >> $GITHUB_OUTPUT - fi - shell: bash - - - id: dotnet-build - name: Build for ${{ matrix.framework }} (${{ matrix.configuration }}) - uses: codebeltnet/dotnet-build@v2 - with: - projects: ${{ steps.projects.outputs.result }} - configuration: ${{ matrix.configuration }} - framework: ${{ matrix.framework }} - restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} - id: test-projects name: Generate matrix for test projects @@ -157,6 +80,20 @@ jobs: with: pattern: test/**/*.csproj + build: + name: call-build + needs: [prepare_linux] + strategy: + matrix: + configuration: [Debug, Release] + uses: codebeltnet/jobs-dotnet/.github/workflows/build.yml@v1 + with: + configuration: ${{ matrix.configuration }} + restore-cache-key: ${{ needs.prepare_linux.outputs.restoreCacheKey }} + secrets: + GCP_TOKEN: ${{ secrets.GCP_TOKEN }} + GCP_BUCKETNAME: ${{ secrets.GCP_BUCKETNAME }} + pack: name: ๐Ÿ“ฆ Pack runs-on: ubuntu-24.04 @@ -184,13 +121,13 @@ jobs: test: name: ๐Ÿงช Test - needs: [build, prepare_linux, prepare_windows] + needs: [build, prepare_test, prepare_linux, prepare_windows] strategy: fail-fast: false matrix: os: [ubuntu-24.04, windows-2022] configuration: [Debug, Release] - project: ${{ fromJson(needs.build.outputs.testProjects) }} + project: ${{ fromJson(needs.prepare_test.outputs.json) }} runs-on: ${{ matrix.os }} timeout-minutes: 15 steps: From 0b2cd903b24eb5126f065a731e255306e7edf267 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Mon, 19 May 2025 22:40:45 +0200 Subject: [PATCH 04/15] :green_heart: added missing snk reference --- .github/workflows/pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 609e61125..f8d992f81 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -90,6 +90,7 @@ jobs: with: configuration: ${{ matrix.configuration }} restore-cache-key: ${{ needs.prepare_linux.outputs.restoreCacheKey }} + strong-name-key-filename: cuemon.snk secrets: GCP_TOKEN: ${{ secrets.GCP_TOKEN }} GCP_BUCKETNAME: ${{ secrets.GCP_BUCKETNAME }} From 273b24b05d7a08e86f99839775c20fa83b8f651b Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 22:08:14 +0200 Subject: [PATCH 05/15] :construction_worker: aligned with pack --- .github/workflows/pipelines.yml | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index f8d992f81..48a63e625 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -86,7 +86,7 @@ jobs: strategy: matrix: configuration: [Debug, Release] - uses: codebeltnet/jobs-dotnet/.github/workflows/build.yml@v1 + uses: codebeltnet/jobs-dotnet-build/.github/workflows/default.yml@v1 with: configuration: ${{ matrix.configuration }} restore-cache-key: ${{ needs.prepare_linux.outputs.restoreCacheKey }} @@ -96,29 +96,17 @@ jobs: GCP_BUCKETNAME: ${{ secrets.GCP_BUCKETNAME }} pack: - name: ๐Ÿ“ฆ Pack - runs-on: ubuntu-24.04 - timeout-minutes: 15 + name: call-pack + needs: [prepare_linux, build] strategy: matrix: configuration: [Debug, Release] - needs: [prepare_linux, build] - steps: - - name: Checkout - uses: codebeltnet/git-checkout@v1 - - - name: Install .NET - uses: codebeltnet/install-dotnet@v1 - with: - includePreview: true - - - name: Pack for ${{ matrix.configuration }} - uses: codebeltnet/dotnet-pack@v2 - with: - configuration: ${{ matrix.configuration }} - uploadPackedArtifact: true - version: ${{ needs.build.outputs.version }} - restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} + uses: codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v1 + with: + configuration: ${{ matrix.configuration }} + uploadPackedArtifact: true + version: ${{ needs.build.outputs.version }} + restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} test: name: ๐Ÿงช Test @@ -201,7 +189,7 @@ jobs: if: github.event_name != 'pull_request' name: call-nuget needs: [build,pack,test,sonarcloud,codecov,codeql] - uses: codebeltnet/jobs-nuget/.github/workflows/default.yml@v1 + uses: codebeltnet/jobs-nuget-push/.github/workflows/default.yml@v1 with: version: ${{ needs.build.outputs.version }} environment: Production From 73e0f531ee7d3d8e4a9daaa068601ef800487d82 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 22:09:01 +0200 Subject: [PATCH 06/15] typo --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 48a63e625..3c10c38af 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -104,7 +104,7 @@ jobs: uses: codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v1 with: configuration: ${{ matrix.configuration }} - uploadPackedArtifact: true + upload-packed-artifact: true version: ${{ needs.build.outputs.version }} restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} From e6d53fce32f890afb529a013a6d04119c4376111 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 22:09:29 +0200 Subject: [PATCH 07/15] typo --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 3c10c38af..8cfd60b8a 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -106,7 +106,7 @@ jobs: configuration: ${{ matrix.configuration }} upload-packed-artifact: true version: ${{ needs.build.outputs.version }} - restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} + restore-cache-key: ${{ needs.prepare_linux.outputs.restoreCacheKey }} test: name: ๐Ÿงช Test From 29716133ac1beda1a45ae33da9f64f836e941e99 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 23:16:53 +0200 Subject: [PATCH 08/15] streamline test --- .github/workflows/pipelines.yml | 36 ++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 8cfd60b8a..cf0886351 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -78,7 +78,12 @@ jobs: name: Generate matrix for test projects uses: codebeltnet/shell-globbing@v1 with: - pattern: test/**/*.csproj + pattern: | + test/**/*.csproj + !test/**/Cuemon.Data.SqlClient.Tests.csproj + + - name: JSON output + run: echo "${{ steps.test-projects.outputs.result }}" build: name: call-build @@ -109,7 +114,7 @@ jobs: restore-cache-key: ${{ needs.prepare_linux.outputs.restoreCacheKey }} test: - name: ๐Ÿงช Test + name: call-test needs: [build, prepare_test, prepare_linux, prepare_windows] strategy: fail-fast: false @@ -117,22 +122,33 @@ jobs: os: [ubuntu-24.04, windows-2022] configuration: [Debug, Release] project: ${{ fromJson(needs.prepare_test.outputs.json) }} - runs-on: ${{ matrix.os }} + uses: codebeltnet/jobs-dotnet-test/.github/workflows/default.yml@v1 + with: + configuration: ${{ matrix.configuration }} + projects: ${{ matrix.project }} + restore-cache-key: ${{ matrix.os == 'Linux' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} + + integration_test: + name: โš—๏ธ Integration Test + needs: [build, prepare_test, prepare_linux] + strategy: + fail-fast: false + matrix: + configuration: [Debug, Release] + project: [ test/**/Cuemon.Data.SqlClient.Tests.csproj ] + runs-on: ubuntu-24.04 timeout-minutes: 15 steps: - name: Checkout uses: codebeltnet/git-checkout@v1 - name: Install .NET - uses: codebeltnet/install-dotnet@v1 - with: - includePreview: true + uses: codebeltnet/install-dotnet@v2 - name: Install .NET Tool - Report Generator uses: codebeltnet/dotnet-tool-install-reportgenerator@v1 - name: Spin up SQL Server test dependency for ${{ matrix.configuration }} build - if: ${{ (runner.os == 'Linux' && contains(matrix.project, 'Cuemon.Data.SqlClient.Tests')) }} uses: codebeltnet/docker-compose@v1 with: command: up @@ -141,19 +157,15 @@ jobs: SA_PASSWORD: ${{ secrets.SA_PASSWORD }} - name: Test with ${{ matrix.configuration }} build - if: ${{ !(runner.os == 'Windows' && contains(matrix.project, 'Cuemon.Data.SqlClient.Tests')) }} uses: codebeltnet/dotnet-test@v3 with: projects: ${{ matrix.project }} configuration: ${{ matrix.configuration }} - restoreCacheKey: ${{ runner.os == 'Linux' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} - buildSwitches: ${{ contains(matrix.project, 'Cuemon.Extensions.Globalization.Tests') && '-p:SkipSignAssembly=false' || '-p:SkipSignAssembly=true' }} - testArguments: -- RunConfiguration.DisableAppDomain=true + restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} env: CONNECTIONSTRINGS__ADVENTUREWORKS: ${{ secrets.DB_ADVENTUREWORKS }} - name: Take down SQL Server test dependency for ${{ matrix.configuration }} build - if: ${{ (runner.os == 'Linux' && contains(matrix.project, 'Cuemon.Data.SqlClient.Tests')) }} uses: codebeltnet/docker-compose@v1 with: command: down From 2a18ba52ca50771c36258257bceccb39c8e83ca5 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 23:28:40 +0200 Subject: [PATCH 09/15] v2 --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index cf0886351..13f148adc 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -76,7 +76,7 @@ jobs: - id: test-projects name: Generate matrix for test projects - uses: codebeltnet/shell-globbing@v1 + uses: codebeltnet/shell-globbing@v2 with: pattern: | test/**/*.csproj From 22b8305a93d1c82976b93eb42c6df40b36034b39 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 23:50:10 +0200 Subject: [PATCH 10/15] experiment --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 13f148adc..5e8641820 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -130,7 +130,7 @@ jobs: integration_test: name: โš—๏ธ Integration Test - needs: [build, prepare_test, prepare_linux] + needs: [build, test, prepare_linux] strategy: fail-fast: false matrix: From 2b443b1d20828ca7eabf51e520abde8e033e0c79 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 21 May 2025 23:51:07 +0200 Subject: [PATCH 11/15] fix --- .github/workflows/pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 5e8641820..775b2de2e 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -172,7 +172,7 @@ jobs: sonarcloud: name: call-sonarcloud - needs: [build,test] + needs: [build,test,integration_test] uses: codebeltnet/jobs-sonarcloud/.github/workflows/default.yml@v1 with: organization: geekle @@ -183,7 +183,7 @@ jobs: codecov: name: call-codecov - needs: [build,test] + needs: [build,test,integration_test] uses: codebeltnet/jobs-codecov/.github/workflows/default.yml@v1 with: repository: gimlichael/Cuemon @@ -192,7 +192,7 @@ jobs: codeql: name: call-codeql - needs: [build,test] + needs: [build,test,integration_test] uses: codebeltnet/jobs-codeql/.github/workflows/default.yml@v1 permissions: security-events: write From da820364e473a5ac42c0d6200386e8346face45b Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Thu, 22 May 2025 22:53:13 +0200 Subject: [PATCH 12/15] removed one needs --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 775b2de2e..9199baa47 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -130,7 +130,7 @@ jobs: integration_test: name: โš—๏ธ Integration Test - needs: [build, test, prepare_linux] + needs: [build, prepare_linux] strategy: fail-fast: false matrix: From 74329129f37eaf8591e8073ce9d99e3d6419a495 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Fri, 23 May 2025 19:33:45 +0200 Subject: [PATCH 13/15] added runs-on --- .github/workflows/pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 9199baa47..eeeb06ea3 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -124,6 +124,7 @@ jobs: project: ${{ fromJson(needs.prepare_test.outputs.json) }} uses: codebeltnet/jobs-dotnet-test/.github/workflows/default.yml@v1 with: + runs-on: ${{ matrix.os }} configuration: ${{ matrix.configuration }} projects: ${{ matrix.project }} restore-cache-key: ${{ matrix.os == 'Linux' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} From 6a500ac4198c2ba93209ce9aef1183848ef8122a Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Fri, 23 May 2025 21:27:11 +0200 Subject: [PATCH 14/15] fix --- .github/workflows/pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index eeeb06ea3..79c55222d 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -127,7 +127,7 @@ jobs: runs-on: ${{ matrix.os }} configuration: ${{ matrix.configuration }} projects: ${{ matrix.project }} - restore-cache-key: ${{ matrix.os == 'Linux' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} + restore-cache-key: ${{ matrix.os == 'ubuntu-24.04' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} integration_test: name: โš—๏ธ Integration Test From 1be96efda76352bab340970c25faa4873f400001 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Fri, 23 May 2025 21:48:52 +0200 Subject: [PATCH 15/15] fix --- .github/workflows/pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipelines.yml b/.github/workflows/pipelines.yml index 79c55222d..01a3fd43e 100644 --- a/.github/workflows/pipelines.yml +++ b/.github/workflows/pipelines.yml @@ -128,6 +128,7 @@ jobs: configuration: ${{ matrix.configuration }} projects: ${{ matrix.project }} restore-cache-key: ${{ matrix.os == 'ubuntu-24.04' && needs.prepare_linux.outputs.restoreCacheKey || needs.prepare_windows.outputs.restoreCacheKey }} + test-arguments: -- RunConfiguration.DisableAppDomain=true integration_test: name: โš—๏ธ Integration Test