-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.6 KB
/
tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Tests
on:
pull_request:
branches: [ main, develop ]
types: [ opened, synchronize ]
push:
branches: [ main, develop ]
jobs:
lox-test:
name: checkout and run c# tests
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup NuGet
uses: NuGet/[email protected]
- run: dotnet test ulox/ --logger "trx;LogFileName=TestResults.trx" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ulox/ulox.core.tests/coverage.info
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ulox.core Tests
path: ulox/ulox.core.tests/TestResults/TestResults.trx
reporter: dotnet-trx
unity-test:
name: Checkout and Run Unity Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- uses: actions/cache@v2
with:
path: ulox-example/Library
key: ulox-example/Library
- name: Run Unity tests
uses: game-ci/unity-test-runner@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectPath: ulox-example/