Skip to content

Commit 51e46dc

Browse files
authored
Update to .Net 10.0 (#873)
* Add support for JetBrains Rider * Update CSharpier to 1.2.6 * Update target framework to .NET 10 and packages to latest * Update dockerfiles * Update GHAs
1 parent 464b715 commit 51e46dc

168 files changed

Lines changed: 3138 additions & 2843 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/dotnet-tools.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"isRoot": true,
44
"tools": {
55
"csharpier": {
6-
"version": "0.27.0",
6+
"version": "1.2.6",
77
"commands": [
8-
"dotnet-csharpier"
9-
]
8+
"csharpier"
9+
],
10+
"rollForward": false
1011
}
1112
}
1213
}

.csharpierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.config
2+
*.csproj
3+
*.props
4+
*.targets
5+
*.xml

.github/workflows/ci-e2e.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
# ASPNETCORE_ENVIRONMENT: Development
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v6
3030

3131
# get version of machine.py - MACHINE_PY_IMAGE will force the docker compose to use the proper version of machine.py
3232
- name: Install regctl
33-
uses: iarekylew00t/regctl-installer@v1
33+
uses: iarekylew00t/regctl-installer@v4.0.8
3434

3535
- name: Set proper version of Machine.py
3636
run: |
@@ -43,12 +43,12 @@ jobs:
4343
echo $MACHINE_PY_IMAGE $MACHINE_PY_CPU_IMAGE
4444
4545
- name: Setup .NET
46-
uses: actions/setup-dotnet@v3
46+
uses: actions/setup-dotnet@v5
4747
with:
48-
dotnet-version: 8.0.x
48+
dotnet-version: 10.0.x
4949

5050
- name: Start containers
51-
run: dotnet build && docker compose -f "docker-compose.yml" up -d && sleep 20 #allow time for mongo to start up properly
51+
run: dotnet build && docker compose -f "docker-compose.yml" up -d && sleep 20 #allow time for mongo to start up properly
5252

5353
- name: Debug network
5454
run: docker ps -a && docker logs --since 10m serval_cntr && docker logs --since 10m echo_cntr && docker logs --since 10m machine-engine-cntr && docker logs --since 10m serval-mongo-1 && docker logs --since 10m machine-job-cntr
@@ -63,7 +63,7 @@ jobs:
6363
run: docker ps -a && docker logs --since 10m serval_cntr && docker logs --since 10m echo_cntr && docker logs --since 10m machine-engine-cntr && docker logs --since 10m serval-mongo-1 && docker logs --since 10m machine-job-cntr
6464

6565
- name: Upload coverage reports to Codecov
66-
uses: codecov/codecov-action@v3
66+
uses: codecov/codecov-action@v5
6767
env:
6868
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6969

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v4
16+
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: 10.0.x
1919
- name: Start MongoDB
20-
uses: supercharge/mongodb-github-action@1.8.0
20+
uses: supercharge/mongodb-github-action@1.12.1
2121
with:
2222
mongodb-version: "8.0"
2323
mongodb-replica-set: rs0
@@ -34,21 +34,21 @@ jobs:
3434
- name: Restore dependencies
3535
run: dotnet restore
3636
- name: Check formatting
37-
run: dotnet csharpier --check .
37+
run: dotnet csharpier check .
3838
- name: Build
3939
run: dotnet build --no-restore -c Release
4040
- name: Pre-Test
4141
run: sudo mkdir -p /var/lib/serval && sudo chmod 777 /var/lib/serval
4242
- name: Test
4343
run: dotnet test --verbosity normal --filter "TestCategory!=E2E&TestCategory!=E2EMissingServices" --collect:"Xplat Code Coverage" --logger "trx;LogFileName=test-results.trx"
4444
- name: Test report
45-
uses: dorny/test-reporter@v1
45+
uses: dorny/test-reporter@v2.5.0
4646
if: success() || failure()
4747
with:
4848
name: NUnit Tests
4949
path: src/**/TestResults/test-results.trx
5050
reporter: dotnet-trx
5151
- name: Upload coverage reports to Codecov
52-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v5
5353
env:
54-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docker-build-push.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: docker build
33
on:
44
push:
55
tags:
6-
- 'docker_*'
6+
- "docker_*"
77

88
jobs:
99
docker:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v5
1414
- name: Set up QEMU
15-
uses: docker/setup-qemu-action@v2
15+
uses: docker/setup-qemu-action@v3
1616
- name: Generate Docker metadata
1717
id: meta
18-
uses: docker/metadata-action@v4
18+
uses: docker/metadata-action@v5
1919
with:
2020
images: |
2121
ghcr.io/${{ github.repository }}
@@ -24,15 +24,15 @@ jobs:
2424
flavor: |
2525
latest=true
2626
- name: Set up Docker Buildx
27-
uses: docker/setup-buildx-action@v2
27+
uses: docker/setup-buildx-action@v3
2828
- name: Login to GitHub Container Registry
29-
uses: docker/login-action@v2
29+
uses: docker/login-action@v3
3030
with:
3131
registry: ghcr.io
3232
username: ${{ github.repository_owner }}
3333
password: ${{ secrets.GITHUB_TOKEN }}
3434
- name: Build and push
35-
uses: docker/build-push-action@v4
35+
uses: docker/build-push-action@v6
3636
with:
3737
context: .
3838
push: true

.github/workflows/missing-services-e2e-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# get version of machine.py - MACHINE_PY_IMAGE will force the docker compose to use the proper version of machine.py
2828
- name: Install regctl
29-
uses: iarekylew00t/regctl-installer@v1
29+
uses: iarekylew00t/regctl-installer@v4.0.8
3030

3131
- name: Set proper version of Machine.py
3232
run: |
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup .NET
4242
uses: actions/setup-dotnet@v5
4343
with:
44-
dotnet-version: 8.0.x
44+
dotnet-version: 10.0.x
4545

4646
- name: Get Machine
4747
run: cd .. && git clone https://github.com/sillsdev/machine.git && cd machine && dotnet build && cd ../serval && dotnet build
@@ -114,7 +114,7 @@ jobs:
114114

115115
#Coverage export
116116
- name: Upload coverage reports to Codecov
117-
uses: codecov/codecov-action@v3
117+
uses: codecov/codecov-action@v5
118118
env:
119119
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
120120

.github/workflows/release-api.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v6
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
16+
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: 6.0.x
18+
dotnet-version: 10.0.x
1919
- name: Pack
2020
run: dotnet pack src/Serval/src/Serval.Grpc/Serval.Grpc.csproj -c Release -o artifacts
2121
- name: Upload package
22-
uses: actions/upload-artifact@v3
22+
uses: actions/upload-artifact@v6
2323
with:
2424
name: nuget-package
2525
path: artifacts/*.nupkg

.github/workflows/release-client.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v4
16+
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: 10.0.x
1919
- name: Pack
2020
run: dotnet pack src/Serval/src/Serval.Client/Serval.Client.csproj -c Release -o artifacts
2121
- name: Upload package
22-
uses: actions/upload-artifact@v4
22+
uses: actions/upload-artifact@v6
2323
with:
2424
name: nuget-package
2525
path: artifacts/*.nupkg

.github/workflows/release-data-access.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v6
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
16+
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: 6.0.x
18+
dotnet-version: 10.0.x
1919
- name: Pack
2020
run: dotnet pack src/Serval/src/SIL.DataAccess/SIL.DataAccess.csproj -c Release -o artifacts
2121
- name: Upload package
22-
uses: actions/upload-artifact@v3
22+
uses: actions/upload-artifact@v6
2323
with:
2424
name: nuget-package
2525
path: artifacts/*.nupkg

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ artifacts
5050
*src_test*
5151
*trg_test*
5252
*.pyc
53-
scripts/clearml_stats/*
53+
scripts/clearml_stats/*
54+
.idea

0 commit comments

Comments
 (0)