-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (40 loc) · 1.27 KB
/
integration_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
name: 'Integration tests'
on:
pull_request:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
run_integration_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout VSharp
uses: actions/checkout@v3
with:
submodules: false
- uses: actions/cache@v3
id: nuget-cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.fsproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Run tests
run: |
dotnet tool restore
dotnet test -c DebugTailRec --logger "trx;LogFileName=tests-results.trx"
dotnet test -c Release --filter "TestCategory=Generated&TestCategory!=FatalError" --logger "trx;LogFileName=generated-tests-results.trx"
- name: Upload tests results to GitHub artifacts
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: tests-results
path: VSharp.Test/TestResults/tests-results.trx
- name: Upload generated tests results to GitHub artifacts
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: generated-tests-results
path: VSharp.Test/TestResults/generated-tests-results.trx