diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e061547..5144c69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,11 @@ jobs: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 - name: Setup .NET versions - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 8.0.x @@ -34,13 +34,13 @@ jobs: - name: Build source code run: dotnet build --configuration Release --no-restore - name: Test with dotnet - run: dotnet test --configuration Release --no-build --framework="net8.0" + run: dotnet test --configuration Release --no-build --framework="net10.0" - name: Check source file format run: dotnet format --no-restore --verify-no-changes continue-on-error: true - name: Pack run: dotnet pack --output ./artifacts --configuration Release --no-build - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: artifacts path: ./artifacts @@ -48,15 +48,26 @@ jobs: testOnSupportedDotnetVersions: strategy: matrix: - os: [ubuntu-22.04, windows-latest] + os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow + - name: Install Mono (Ubuntu only) + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt install -y ca-certificates gnupg + sudo gpg --homedir /tmp --no-default-keyring \ + --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg \ + --keyserver hkp://keyserver.ubuntu.com:80 \ + --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF + echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list + sudo apt update + sudo apt install -y mono-complete - name: Setup .NET versions - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 8.0.x @@ -77,13 +88,13 @@ jobs: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup .NET versions - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 10.0.x - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v5 with: name: artifacts path: ./artifacts diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ff7ab25..df73607 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -19,23 +19,23 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow - name: Setup .NET versions - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 8.0.x 9.0.x 10.0.x - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: queries: security-and-quality languages: csharp config-file: ./.github/codeql-config.yml - name: Build source code - run: dotnet build --configuration Release --framework net8.0 + run: dotnet build --configuration Release --framework net10.0 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 diff --git a/global.json b/global.json index 48b30cd..3b9f8d5 100644 --- a/global.json +++ b/global.json @@ -2,6 +2,6 @@ "sdk": { "version": "10.0.100", "allowPrerelease": false, - "rollForward": "latestMinor" + "rollForward": "latestMajor" } }