-
Notifications
You must be signed in to change notification settings - Fork 12
60 lines (56 loc) · 1.87 KB
/
quint.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
on:
workflow_dispatch:
push:
branches:
- main
paths:
- Specs/Quint/**
pull_request:
paths:
- Specs/Quint/**
name: Quint
jobs:
quint-typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install -g @informalsystems/quint
- run: bash Scripts/quint-forall.sh typecheck Specs/Quint/*.qnt
quint-test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install -g @informalsystems/quint
- run: bash Scripts/quint-forall.sh test Specs/Quint/*Test.qnt
quint-traces:
name: Generate trace files
runs-on: ubuntu-latest
env:
fixture_dir: Code/itf/tests/fixtures/votekeeper
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install -g @informalsystems/quint
- name: Generate traces
working-directory: Specs/Quint
run: |
quint test --output ../../$fixture_dir/voteBookkeeper_{}.itf.json voteBookkeeperTest.qnt
# This step is needed as a hack to clean the generated traces of repeated steps. The problem
# is that `quint test --output ...` on `run` statements registers in the traces the
# `allUnchanged` actions that are used when checking properties (see
# https://github.com/informalsystems/quint/issues/1252).
- name: Remove stuttering steps
run: find $fixture_dir -maxdepth 1 -type f -exec ./Scripts/trace-remove-stuttering-steps.sh {} \;
# This step removes trace files generated from tests defined in imported modules.
- name: Remove tests
run: rm $fixture_dir/*voteBookkeeperTest::*.*