-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.04 KB
/
ci.yml
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
40
41
42
43
name: Build & Test
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- src/**
- tests/**
- .github/workflows/ci.yaml
push:
branches: [ main ]
paths:
- src/**
- tests/**
- .github/workflows/ci.yaml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0.x']
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build Nox.Generator.Tasks
run: dotnet build ./src/Nox.Generator.Tasks
- name: Restore
run: dotnet restore ./src/Nox.Generator.sln
- name: Build
run: dotnet build ./src/Nox.Generator.sln --warnaserror --configuration Release --no-restore
- name: Run Tests
run: dotnet test ./src/Nox.Generator.sln --no-restore --verbosity minimal --configuration Release --filter "FullyQualifiedName!~Nox.Secrets.Tests"