-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 911 Bytes
/
run-tests.yml
File metadata and controls
38 lines (31 loc) · 911 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
name: Run Unit Tests
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
test:
name: Build and run unit tests
runs-on: ubuntu-latest
steps:
- name: GitHub actions Workspace Cleaner
uses: jstone28/runner-workspace-cleaner@v1.0.0
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore dependencies
run: dotnet restore
working-directory: ./ThreeByte.LinkLib
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./ThreeByte.LinkLib
- name: Run tests
run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
working-directory: ./ThreeByte.LinkLib