Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,29 +34,40 @@ 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

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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"sdk": {
"version": "10.0.100",
"allowPrerelease": false,
"rollForward": "latestMinor"
"rollForward": "latestMajor"
}
}