Skip to content

Commit 7d315c0

Browse files
committed
Automatic tests.
1 parent a96028c commit 7d315c0

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,26 @@ permissions:
1414
id-token: write
1515

1616
jobs:
17+
tests:
18+
strategy:
19+
matrix:
20+
host: [windows-latest, ubuntu-latest, macos-latest]
21+
runs-on: ${{ matrix.host }}
22+
env:
23+
TESTS_PATH: ./Tests
24+
TESTS_CONFIGURATION: Debug
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v2
30+
with:
31+
dotnet-version: 6.0.x
32+
- name: Tests
33+
run: dotnet test
34+
1735
build:
36+
needs: tests
1837
strategy:
1938
matrix:
2039
host: [ubuntu-latest]

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,26 @@ on:
44
workflow_dispatch:
55

66
jobs:
7+
tests:
8+
strategy:
9+
matrix:
10+
host: [windows-latest, ubuntu-latest, macos-latest]
11+
runs-on: ${{ matrix.host }}
12+
env:
13+
TESTS_PATH: ./Tests
14+
TESTS_CONFIGURATION: Debug
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v2
20+
with:
21+
dotnet-version: 6.0.x
22+
- name: Tests
23+
run: dotnet test
24+
725
create-release:
26+
needs: tests
827
runs-on: ubuntu-latest
928
permissions:
1029
contents: write

0 commit comments

Comments
 (0)