Skip to content

Commit 2b1fa2f

Browse files
GitHub actions (#1)
- Build in ci - Run tests in ci
1 parent de5f1a7 commit 2b1fa2f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)