From 888a371bc34b11b9143386b5b34540f92080f9e1 Mon Sep 17 00:00:00 2001 From: Meir Blachman Date: Fri, 7 Mar 2025 13:23:08 +0200 Subject: [PATCH 1/2] chore: update GitHub Actions to use Ubuntu 22.04 with dotnet v6 --- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/integration.yml | 2 +- .github/workflows/release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 421c89bc..fcec18d8 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -8,7 +8,7 @@ permissions: jobs: benchmark: name: Performance regression check - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.repository == 'fluentassertions/fluentassertions.analyzers' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2085da93..ab41ad8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-22.04, windows-2022, macos-14] config: [Debug, Release] runs-on: ${{ matrix.os }} env: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index b34e924a..9fbf3012 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-22.04, windows-2022, macos-14] runs-on: ${{ matrix.os }} env: NUGET_CERT_REVOCATION_MODE: offline diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce5f0afd..99d44448 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: publish: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v4 From fee4c6ebe1caaa3443c65e19abeb427ce1fd0af8 Mon Sep 17 00:00:00 2001 From: Meir Blachman Date: Fri, 7 Mar 2025 14:14:16 +0200 Subject: [PATCH 2/2] setup .net7 for benchmark --- .github/workflows/benchmark.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index fcec18d8..50166d0a 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,6 +16,10 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '6.x' + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '7.x' - name: Run benchmark run: cd src/FluentAssertions.Analyzers.BenchmarkTests && dotnet run -c Release --exporters json --filter '*'