-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 744 Bytes
/
Copy pathdotnet.yml
File metadata and controls
38 lines (31 loc) · 744 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
name: .NET Core CI
# Executed on push and pull on branch main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout repository
uses: actions/checkout@v3
# Set .NET version
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
# Restore NuGet packages
- name: Restore dependencies
run: dotnet restore
# Build projects
- name: Build
run: dotnet build --no-restore
# Run tests
- name: Run tests
run: dotnet test --no-build --verbosity normal
continue-on-error: true