-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 801 Bytes
/
ci.yml
File metadata and controls
37 lines (30 loc) · 801 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
name: CI
# Run CI checks on pull requests and commits to main branch
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Setup .NET SDK
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
# Step 3: Restore dependencies
- name: Restore dependencies
run: dotnet restore
# Step 4: Build the project
- name: Build
run: dotnet build --configuration Release --no-restore
# Step 5: Run tests
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal