From 010fe0d780d68a54912ce6d3b8d8439488379fcd Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Tue, 15 Sep 2026 18:23:05 +0200 Subject: [PATCH 1/2] Use shared .NET build action --- .github/workflows/ci.yml | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddfeebc..11410bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,32 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v7 + - name: Build and test + uses: Kralizek/github-actions/actions/dotnet-build@v0.1 with: - fetch-depth: 0 - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v6 - with: - global-json-file: global.json - cache: true - cache-dependency-path: | - **/*.csproj - **/*.props - **/*.targets - - - name: Restore - run: dotnet restore - - - name: Verify formatting - run: dotnet format --verify-no-changes --no-restore - - - name: Build - run: dotnet build --configuration $CONFIGURATION --no-restore --warnaserror - - - name: Test - run: dotnet test --configuration $CONFIGURATION --no-build --logger GitHubActions + global_json_file: global.json - name: Pack run: dotnet pack --configuration $CONFIGURATION --no-build --output ./artifacts/packages From 18cc9ae2498e98ef567d515a3e1ac0a1c384b7fa Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Tue, 15 Sep 2026 19:11:41 +0200 Subject: [PATCH 2/2] Use github-actions v0.2 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11410bf..2cc9816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Build and test - uses: Kralizek/github-actions/actions/dotnet-build@v0.1 + uses: Kralizek/github-actions/actions/dotnet-build@v0.2 with: global_json_file: global.json