-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (35 loc) · 986 Bytes
/
dotnet-test.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: Test
on:
push:
branches: ["main"]
paths:
- "SubRenamer/**"
- "SubRenamer.Tests/**"
pull_request:
branches: ["main"]
paths:
- "SubRenamer/**"
- "SubRenamer.Tests/**"
workflow_dispatch:
env:
TEST_RPOJECT: SubRenamer.Tests
jobs:
build:
name: .NET ${{ matrix.dotnet-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
dotnet-version: ["8.0.x"]
steps:
- uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore ${{ env.TEST_RPOJECT }}
- name: Build
run: dotnet build --no-restore ${{ env.TEST_RPOJECT }}
- name: Test with dotnet
run: dotnet test ${{ env.TEST_RPOJECT }} --verbosity normal