-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 824 Bytes
/
Copy pathtest.yml
File metadata and controls
34 lines (27 loc) · 824 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
# This workflow builds and tests the project
name: test
on: push
env:
# Specifies dotnet SDK Version
DOTNET_VERSION: '6.0.x'
jobs:
ci:
name: test-job
runs-on: ubuntu-latest
steps:
# Checks out the source code at the latest commit
- uses: actions/checkout@v3
# Installs the .NET SDK on the build machine
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
# Installs any NuGet packages required.
- name: Install dependencies
run: dotnet restore
# Builds the project
- name: Build
run: dotnet build --configuration Release --no-restore
# Runs any tests in the project
- name: Test
run: dotnet test --configuration Release --no-restore --verbosity normal