-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (73 loc) · 2.73 KB
/
gobra.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
# 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-2020 ETH Zurich.
name: Verify the specified codebase
on:
push:
branches:
- master
pull_request: # run this workflow on every pull_request
jobs:
verify:
runs-on: ubuntu-latest
env:
headerOnly: 1
includePaths: 'src'
assumeInjectivityOnInhale: '1'
checkConsistency: '1'
steps:
- name: Checkout the verified_go_stdlib repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Cache the verification results
uses: actions/cache@v3
env:
cache-name: gobra-cache
with:
path: ${{ runner.workspace }}/.gobra/cache.json
key: ${{ env.cache-name }}
# We split the verification of the entire repository into
# multiple steps. This provides a more fine-grained log in
# Github Workflow's interface and it allows more fine-grained
# control over the settings applied to each package (this last
# point could be also be solved by adapting the action to allow
# per package config).
- name: Verify package 'container/list'
uses: viperproject/gobra-action@main
with:
packages: 'src/container/list'
timeout: 40m
headerOnly: ${{ env.headerOnly }}
includePaths: ${{ env.includePaths }}
assumeInjectivityOnInhale: ${{ env.assumeInjectivityOnInhale }}
checkConsistency: ${{ env.checkConsistency }}
statsFile: '/stats/stats_list.json'
- name: Verify package 'bytes'
uses: viperproject/gobra-action@main
with:
packages: 'src/bytes'
timeout: 40m
headerOnly: ${{ env.headerOnly }}
includePaths: ${{ env.includePaths }}
assumeInjectivityOnInhale: ${{ env.assumeInjectivityOnInhale }}
checkConsistency: ${{ env.checkConsistency }}
statsFile: '/stats/stats_list.json'
- name: Verify package 'path'
uses: viperproject/gobra-action@main
with:
packages: 'src/path'
timeout: 40m
headerOnly: ${{ env.headerOnly }}
includePaths: ${{ env.includePaths }}
assumeInjectivityOnInhale: ${{ env.assumeInjectivityOnInhale }}
checkConsistency: ${{ env.checkConsistency }}
statsFile: '/stats/stats_list.json'
- name: Upload the verification report
uses: actions/upload-artifact@v4
with:
name: stats_list.json
path: /stats/stats_list.json
if-no-files-found: error # could also be 'warn' or 'ignore'