@@ -15,11 +15,11 @@ jobs:
1515 GITHUB_CONTEXT : ${{ toJson(github) }}
1616 run : echo "$GITHUB_CONTEXT"
1717 - name : Checkout
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v5
1919 with :
2020 fetch-depth : 0
2121 - name : Setup .NET versions
22- uses : actions/setup-dotnet@v4
22+ uses : actions/setup-dotnet@v5
2323 with :
2424 dotnet-version : |
2525 8.0.x
@@ -34,29 +34,40 @@ jobs:
3434 - name : Build source code
3535 run : dotnet build --configuration Release --no-restore
3636 - name : Test with dotnet
37- run : dotnet test --configuration Release --no-build --framework="net8 .0"
37+ run : dotnet test --configuration Release --no-build --framework="net10 .0"
3838 - name : Check source file format
3939 run : dotnet format --no-restore --verify-no-changes
4040 continue-on-error : true
4141 - name : Pack
4242 run : dotnet pack --output ./artifacts --configuration Release --no-build
43- - uses : actions/upload-artifact@v4
43+ - uses : actions/upload-artifact@v5
4444 with :
4545 name : artifacts
4646 path : ./artifacts
4747
4848 testOnSupportedDotnetVersions :
4949 strategy :
5050 matrix :
51- os : [ubuntu-22.04 , windows-latest]
51+ os : [ubuntu-latest , windows-latest]
5252 runs-on : ${{ matrix.os }}
5353 steps :
5454 - name : Checkout
55- uses : actions/checkout@v4
55+ uses : actions/checkout@v5
5656 - name : Fetch all history for all tags and branches
5757 run : git fetch --prune --unshallow
58+ - name : Install Mono (Ubuntu only)
59+ if : matrix.os == 'ubuntu-latest'
60+ run : |
61+ sudo apt install -y ca-certificates gnupg
62+ sudo gpg --homedir /tmp --no-default-keyring \
63+ --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg \
64+ --keyserver hkp://keyserver.ubuntu.com:80 \
65+ --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
66+ 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
67+ sudo apt update
68+ sudo apt install -y mono-complete
5869 - name : Setup .NET versions
59- uses : actions/setup-dotnet@v4
70+ uses : actions/setup-dotnet@v5
6071 with :
6172 dotnet-version : |
6273 8.0.x
@@ -77,13 +88,13 @@ jobs:
7788 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
7889 steps :
7990 - name : Checkout
80- uses : actions/checkout@v4
91+ uses : actions/checkout@v5
8192 - name : Setup .NET versions
82- uses : actions/setup-dotnet@v4
93+ uses : actions/setup-dotnet@v5
8394 with :
8495 dotnet-version : |
8596 10.0.x
86- - uses : actions/download-artifact@v4
97+ - uses : actions/download-artifact@v5
8798 with :
8899 name : artifacts
89100 path : ./artifacts
0 commit comments