Skip to content

Commit edc68d3

Browse files
committed
ci: add GitHub Actions workflow to run tests on push and PRs
1 parent b814628 commit edc68d3

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: '10.0.x'
20+
21+
- name: Restore
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build -c Release --no-restore
26+
27+
- name: Test
28+
run: dotnet test -c Release --no-build --verbosity normal

0 commit comments

Comments
 (0)