From cf75d26b21240b378340db3150f0d39a790efd74 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Wed, 12 Nov 2025 23:46:17 +1000 Subject: [PATCH 1/3] Use global.json dotnet version for actions --- .github/workflows/GenerateAsyncCode.yml | 2 +- .github/workflows/NetCoreTests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/GenerateAsyncCode.yml b/.github/workflows/GenerateAsyncCode.yml index 3cc770f2bb..a4a988beb7 100644 --- a/.github/workflows/GenerateAsyncCode.yml +++ b/.github/workflows/GenerateAsyncCode.yml @@ -21,7 +21,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: 8.0.x + global-json-file: global.json - name: Generate Async code run: | diff --git a/.github/workflows/NetCoreTests.yml b/.github/workflows/NetCoreTests.yml index 5440cd919d..fdc0d97300 100644 --- a/.github/workflows/NetCoreTests.yml +++ b/.github/workflows/NetCoreTests.yml @@ -66,7 +66,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: 8.0.x + global-json-file: global.json - name: Checkout uses: actions/checkout@v5 From d424bddfa7f0c9e3c25c58eb8f58c2f596ff32a8 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Wed, 12 Nov 2025 23:49:51 +1000 Subject: [PATCH 2/3] Fix order of actions --- .github/workflows/NetCoreTests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/NetCoreTests.yml b/.github/workflows/NetCoreTests.yml index fdc0d97300..25c460b8c0 100644 --- a/.github/workflows/NetCoreTests.yml +++ b/.github/workflows/NetCoreTests.yml @@ -63,16 +63,16 @@ jobs: - name: Set up ${{matrix.DB}} run: ${{matrix.DB_INIT}} - - name: Set up .NET - uses: actions/setup-dotnet@v5 - with: - global-json-file: global.json - - name: Checkout uses: actions/checkout@v5 with: show-progress: false + - name: Set up .NET + uses: actions/setup-dotnet@v5 + with: + global-json-file: ./global.json + - name: Build and Test run: | pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}" From 5d4f38398c673cc67fb067a38d4d7ff60c9cad4e Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Wed, 12 Nov 2025 23:52:04 +1000 Subject: [PATCH 3/3] Minor --- .github/workflows/NetCoreTests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/NetCoreTests.yml b/.github/workflows/NetCoreTests.yml index 25c460b8c0..734829cc4a 100644 --- a/.github/workflows/NetCoreTests.yml +++ b/.github/workflows/NetCoreTests.yml @@ -71,7 +71,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v5 with: - global-json-file: ./global.json + global-json-file: global.json - name: Build and Test run: |