Skip to content

Commit 867350e

Browse files
authored
Update for Steeltoe v4 and .NET 9 (#98)
* Update for Steeltoe v4 and .NET 9
1 parent a9777a5 commit 867350e

File tree

112 files changed

+3546
-2495
lines changed

Some content is hidden

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

112 files changed

+3546
-2495
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
"version": 1,
33
"isRoot": true,
44
"tools": {
5-
"dotnet-reportgenerator-globaltool": {
6-
"version": "4.6.4",
7-
"commands": [
8-
"reportgenerator"
9-
]
10-
},
115
"nbgv": {
12-
"version": "3.4.244",
6+
"version": "3.7.115",
137
"commands": [
148
"nbgv"
15-
]
9+
],
10+
"rollForward": false
1611
}
1712
}
1813
}

.editorconfig

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ root = true
22

33
[*]
44
indent_style = space
5-
end_of_line = lf
5+
indent_size = 4
6+
tab-width = 4
7+
charset = utf-8
68
trim_trailing_whitespace = true
79
insert_final_newline = true
8-
max_line_length = 120
9-
charset = utf-8
10-
11-
[*.cs]
12-
indent_size = 4
13-
14-
[*.{config, csproj, props}]
15-
indent_size = 2
10+
max_line_length = 160
1611

17-
[*.{json, yaml}]
12+
[*.{build,config,csproj,js,json,proj,props,targets,xml,ruleset,xsd,yml,yaml}]
1813
indent_size = 2
14+
tab-width = 2

.github/workflows/build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: build-and-test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
DOTNET_NOLOGO: true
16+
DOTNET_CLI_TELEMETRY_OPTOUT: true
17+
18+
jobs:
19+
build-and-test:
20+
timeout-minutes: 60
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: [ubuntu-latest, windows-latest, macos-latest]
25+
runs-on: ${{ matrix.os }}
26+
steps:
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: |
31+
6.0.*
32+
8.0.*
33+
9.0.*
34+
- name: Git checkout
35+
uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0
38+
- name: Restore tools
39+
run: |
40+
dotnet tool restore
41+
- name: Restore packages
42+
run: |
43+
dotnet restore
44+
- name: Build
45+
run: |
46+
dotnet build --no-restore --configuration Release
47+
- name: Test
48+
run: |
49+
dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true"
50+
- name: Generate packages
51+
shell: pwsh
52+
run: |
53+
dotnet pack src --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages
54+
- name: Upload packages to artifacts
55+
if: matrix.os == 'ubuntu-latest'
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: packages
59+
path: artifacts/packages

0 commit comments

Comments
 (0)