-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (31 loc) · 961 Bytes
/
test.yml
File metadata and controls
38 lines (31 loc) · 961 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
# Run unit tests on GitHub actions manually, and for each pull request
on:
pull_request:
branches: [ master ]
workflow_dispatch: null
jobs:
test:
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
os:
- runs-on: windows-latest
arch: win-x64
- runs-on: macos-13
arch: osx-x64
- runs-on: ubuntu-latest
arch: linux-x64
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Run general tests
run: dotnet test PathLib.UnitTest
- name: run Windows specific tests
if: ${{ matrix.os.runs-on == 'windows-latest' }}
run: dotnet test PathLib.UnitTest.Windows
- name: run Posix specific tests
if: ${{ matrix.os.runs-on != 'windows-latest' }}
run: dotnet test PathLib.UnitTest.Posix