-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 814 Bytes
/
ci.yml
File metadata and controls
39 lines (30 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
# Skip CI if commit message contains [skip ci]
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Test summary
if: success()
run: echo "✅ All tests passed"