-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 1.09 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
# This workflow performs static analysis checks.
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
verification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dafny
uses: dafny-lang/setup-dafny-action@v1
with:
dafny-version: "3.4.2"
- name: Install Dafny report generator
run: dotnet tool install --global dafny-reportgenerator
- name: Install lit
run: pip install lit OutputCheck
- name: Verify Dafny Code
run: lit --time-tests -v --param 'dafny_params=/verificationLogger:trx /verificationLogger:csv' .
- name: Generate Report
run: find . -name '*.csv' -print0 | xargs -0 --verbose dafny-reportgenerator summarize-csv-results --max-duration-seconds 10
- uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: verification-results
path: '**/TestResults/*.trx'
if-no-files-found: error