Skip to content

Commit 8f1ba19

Browse files
ci(deps): bump actions/setup-dotnet from 4 to 5
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 4 to 5. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v4...v5) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 2657770 commit 8f1ba19

File tree

4 files changed

+822
-822
lines changed

4 files changed

+822
-822
lines changed

.github/workflows/ci.yml

Lines changed: 142 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,143 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
9-
jobs:
10-
build-and-test:
11-
name: Build and Test
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
17-
18-
- name: Setup .NET
19-
uses: actions/setup-dotnet@v4
20-
with:
21-
dotnet-version: '9.0.x'
22-
23-
- name: Restore dependencies
24-
run: dotnet restore
25-
26-
- name: Build solution
27-
run: dotnet build --no-restore --configuration Release --verbosity normal
28-
29-
- name: Run tests
30-
run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory TestResults/
31-
32-
- name: Upload coverage reports to Codecov
33-
uses: codecov/codecov-action@v4
34-
with:
35-
directory: TestResults/
36-
fail_ci_if_error: false
37-
verbose: true
38-
env:
39-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40-
41-
lint-and-format:
42-
name: Lint and Format Check
43-
runs-on: ubuntu-latest
44-
45-
steps:
46-
- name: Checkout code
47-
uses: actions/checkout@v4
48-
49-
- name: Setup .NET
50-
uses: actions/setup-dotnet@v4
51-
with:
52-
dotnet-version: '9.0.x'
53-
54-
- name: Restore dependencies
55-
run: dotnet restore
56-
57-
- name: Check format
58-
run: dotnet format --verify-no-changes --verbosity diagnostic
59-
60-
- name: Run analyzers
61-
run: dotnet build --no-restore --configuration Release --verbosity normal
62-
63-
security-scan:
64-
name: Security Scan
65-
runs-on: ubuntu-latest
66-
67-
steps:
68-
- name: Checkout code
69-
uses: actions/checkout@v4
70-
71-
- name: Setup .NET
72-
uses: actions/setup-dotnet@v4
73-
with:
74-
dotnet-version: '9.0.x'
75-
76-
- name: Restore dependencies
77-
run: dotnet restore
78-
79-
- name: Run vulnerability scan
80-
run: dotnet list package --vulnerable --include-transitive || true
81-
82-
benchmark:
83-
name: Benchmarks
84-
runs-on: ubuntu-latest
85-
if: github.event_name == 'pull_request'
86-
87-
steps:
88-
- name: Checkout code
89-
uses: actions/checkout@v4
90-
91-
- name: Setup .NET
92-
uses: actions/setup-dotnet@v4
93-
with:
94-
dotnet-version: '9.0.x'
95-
96-
- name: Restore dependencies
97-
run: dotnet restore
98-
99-
- name: Build solution
100-
run: dotnet build --no-restore --configuration Release --verbosity normal
101-
102-
- name: Run benchmarks
103-
run: |
104-
cd benchmarks/StreamDingo.Benchmarks
105-
timeout 180 dotnet run --configuration Release -- --job VeryShortRun --exporters json --memory || {
106-
echo "Benchmark run completed or timed out"
107-
exit 0
108-
}
109-
110-
- name: Upload benchmark results
111-
uses: actions/upload-artifact@v4
112-
with:
113-
name: benchmark-results
114-
path: benchmarks/StreamDingo.Benchmarks/BenchmarkDotNet.Artifacts/
115-
retention-days: 7
116-
117-
package:
118-
name: Package
119-
runs-on: ubuntu-latest
120-
needs: [build-and-test, lint-and-format, security-scan]
121-
if: github.ref == 'refs/heads/main'
122-
123-
steps:
124-
- name: Checkout code
125-
uses: actions/checkout@v4
126-
127-
- name: Setup .NET
128-
uses: actions/setup-dotnet@v4
129-
with:
130-
dotnet-version: '9.0.x'
131-
132-
- name: Restore dependencies
133-
run: dotnet restore
134-
135-
- name: Build and package
136-
run: dotnet pack --no-restore --configuration Release --output ./artifacts
137-
138-
- name: Upload package artifacts
139-
uses: actions/upload-artifact@v4
140-
with:
141-
name: nuget-packages
142-
path: ./artifacts/*.nupkg
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
name: Build and Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v5
20+
with:
21+
dotnet-version: '9.0.x'
22+
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
26+
- name: Build solution
27+
run: dotnet build --no-restore --configuration Release --verbosity normal
28+
29+
- name: Run tests
30+
run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory TestResults/
31+
32+
- name: Upload coverage reports to Codecov
33+
uses: codecov/codecov-action@v4
34+
with:
35+
directory: TestResults/
36+
fail_ci_if_error: false
37+
verbose: true
38+
env:
39+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
41+
lint-and-format:
42+
name: Lint and Format Check
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v4
48+
49+
- name: Setup .NET
50+
uses: actions/setup-dotnet@v5
51+
with:
52+
dotnet-version: '9.0.x'
53+
54+
- name: Restore dependencies
55+
run: dotnet restore
56+
57+
- name: Check format
58+
run: dotnet format --verify-no-changes --verbosity diagnostic
59+
60+
- name: Run analyzers
61+
run: dotnet build --no-restore --configuration Release --verbosity normal
62+
63+
security-scan:
64+
name: Security Scan
65+
runs-on: ubuntu-latest
66+
67+
steps:
68+
- name: Checkout code
69+
uses: actions/checkout@v4
70+
71+
- name: Setup .NET
72+
uses: actions/setup-dotnet@v5
73+
with:
74+
dotnet-version: '9.0.x'
75+
76+
- name: Restore dependencies
77+
run: dotnet restore
78+
79+
- name: Run vulnerability scan
80+
run: dotnet list package --vulnerable --include-transitive || true
81+
82+
benchmark:
83+
name: Benchmarks
84+
runs-on: ubuntu-latest
85+
if: github.event_name == 'pull_request'
86+
87+
steps:
88+
- name: Checkout code
89+
uses: actions/checkout@v4
90+
91+
- name: Setup .NET
92+
uses: actions/setup-dotnet@v5
93+
with:
94+
dotnet-version: '9.0.x'
95+
96+
- name: Restore dependencies
97+
run: dotnet restore
98+
99+
- name: Build solution
100+
run: dotnet build --no-restore --configuration Release --verbosity normal
101+
102+
- name: Run benchmarks
103+
run: |
104+
cd benchmarks/StreamDingo.Benchmarks
105+
timeout 180 dotnet run --configuration Release -- --job VeryShortRun --exporters json --memory || {
106+
echo "Benchmark run completed or timed out"
107+
exit 0
108+
}
109+
110+
- name: Upload benchmark results
111+
uses: actions/upload-artifact@v4
112+
with:
113+
name: benchmark-results
114+
path: benchmarks/StreamDingo.Benchmarks/BenchmarkDotNet.Artifacts/
115+
retention-days: 7
116+
117+
package:
118+
name: Package
119+
runs-on: ubuntu-latest
120+
needs: [build-and-test, lint-and-format, security-scan]
121+
if: github.ref == 'refs/heads/main'
122+
123+
steps:
124+
- name: Checkout code
125+
uses: actions/checkout@v4
126+
127+
- name: Setup .NET
128+
uses: actions/setup-dotnet@v5
129+
with:
130+
dotnet-version: '9.0.x'
131+
132+
- name: Restore dependencies
133+
run: dotnet restore
134+
135+
- name: Build and package
136+
run: dotnet pack --no-restore --configuration Release --output ./artifacts
137+
138+
- name: Upload package artifacts
139+
uses: actions/upload-artifact@v4
140+
with:
141+
name: nuget-packages
142+
path: ./artifacts/*.nupkg
143143
retention-days: 7

.github/workflows/docs.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
name: Deploy Documentation
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
paths:
7-
- 'docs/**'
8-
- 'docs-generator/**'
9-
- 'src/StreamDingo/**'
10-
workflow_dispatch:
11-
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
17-
concurrency:
18-
group: "pages"
19-
cancel-in-progress: false
20-
21-
jobs:
22-
build:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v4
27-
28-
- name: Setup .NET
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: '9.0.x'
32-
33-
- name: Build StreamDingo project for API docs
34-
run: dotnet build src/StreamDingo/StreamDingo.csproj
35-
36-
- name: Build documentation with Statiq
37-
run: dotnet run --project docs-generator/DocsGenerator.csproj
38-
39-
- name: Setup Pages
40-
uses: actions/configure-pages@v4
41-
42-
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v3
44-
with:
45-
path: ./docs-generator/output
46-
47-
deploy:
48-
environment:
49-
name: github-pages
50-
url: ${{ steps.deployment.outputs.page_url }}
51-
runs-on: ubuntu-latest
52-
needs: build
53-
steps:
54-
- name: Deploy to GitHub Pages
55-
id: deployment
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'docs/**'
8+
- 'docs-generator/**'
9+
- 'src/StreamDingo/**'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v5
30+
with:
31+
dotnet-version: '9.0.x'
32+
33+
- name: Build StreamDingo project for API docs
34+
run: dotnet build src/StreamDingo/StreamDingo.csproj
35+
36+
- name: Build documentation with Statiq
37+
run: dotnet run --project docs-generator/DocsGenerator.csproj
38+
39+
- name: Setup Pages
40+
uses: actions/configure-pages@v4
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: ./docs-generator/output
46+
47+
deploy:
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
runs-on: ubuntu-latest
52+
needs: build
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
5656
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)