Skip to content

Commit 93c34ba

Browse files
committed
ci: add ci that runs a build and tests
1 parent b592ebc commit 93c34ba

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- SgfDevs/**
7+
- SgfDevs.Tests/**
8+
- SgfDevs.slnx
9+
- .github/workflows/**
10+
push:
11+
branches:
12+
- main
13+
paths:
14+
- SgfDevs/**
15+
- SgfDevs.Tests/**
16+
- SgfDevs.slnx
17+
- .github/workflows/**
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
build-and-test:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v6
27+
28+
- uses: actions/setup-dotnet@v5
29+
with:
30+
dotnet-version: 10.0.x
31+
32+
- name: Restore
33+
run: dotnet restore SgfDevs.slnx
34+
35+
- name: Build
36+
run: dotnet build SgfDevs.slnx --no-restore --verbosity minimal
37+
38+
- name: Test
39+
run: dotnet test SgfDevs.slnx --no-build --verbosity minimal

0 commit comments

Comments
 (0)