-
Notifications
You must be signed in to change notification settings - Fork 2
87 lines (84 loc) · 2.77 KB
/
test.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2011-2022 ETH Zurich.
name: test
on:
push: # run this workflow on every push
pull_request: # run this workflow on every pull_request
jobs:
setup-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Verify Gobra files (files mode)
uses: ./
with:
files: 'test/files_test/file1.go test/files_test/file2.gobra'
includePaths: 'test/include_path'
timeout: 2m
- name: Verify Gobra files with conditionalizePermissions (files mode)
uses: ./
with:
files: 'test/files_test/file1.go test/files_test/file2.gobra'
includePaths: 'test/include_path'
timeout: 2m
conditionalizePermissions: '1'
# disableNL: '1'
- name: Verify chopped Gobra files
uses: ./
with:
files: 'test/files_test/file1.go@11 test/files_test/file2.gobra'
includePaths: 'test/include_path'
timeout: 2m
overflow: 1
- name: Verify Gobra files with the Z3 API
uses: ./
with:
files: 'test/files_test/file1.go test/files_test/file2.gobra'
includePaths: 'test/include_path'
timeout: 2m
# useZ3API: '1'
- name: Verify Gobra files (package mode)
uses: ./
with:
packages: 'test/packages_test/test1/'
timeout: 2m
- name: Verify Gobra files (recursive mode)
uses: ./
with:
projectLocation: 'gobra-action/test/'
excludePackages: 'main timeout_test'
recursive: '1'
timeout: 2m
checkConsistency: '1'
- name: Verify Gobra files (recursive and headerOnly mode)
uses: ./
with:
projectLocation: 'gobra-action/test/'
excludePackages: 'main'
recursive: '1'
headerOnly: '1'
timeout: 2m
statsFile: '/stats/'
- name: Verify Gobra files without moreCompleteExhale and with parallelizeBranches
uses: ./
with:
packages: 'test/packages_test/test1/'
timeout: 2m
mceMde: 'off'
parallelizeBranches: 1
- name: Test that timeout reports an error
continue-on-error: true
uses: ./
with:
files: 'test/timeout_test/matching_loop.gobra'
timeout: 10s
- name: Upload statistics report
uses: actions/upload-artifact@v2
with:
name: stats
path: /stats/stats.json
if-no-files-found: error # could also be 'warn' or 'ignore'