| 1 |
name: ReqProof Audit |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: [main] |
| 5 |
pull_request: |
| 6 |
|
| 7 |
jobs: |
| 8 |
audit: |
| 9 |
runs-on: ubuntu-24.04 |
| 10 |
steps: |
| 11 |
- uses: actions/checkout@v4 |
| 12 |
with: |
| 13 |
fetch-depth: 0 |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
- name: Set up Go |
| 19 |
uses: actions/setup-go@v5 |
| 20 |
with: |
| 21 |
go-version: '1.25' |
| 22 |
|
| 23 |
- name: Cache ReqProof solvers |
| 24 |
uses: actions/cache@v4 |
| 25 |
with: |
| 26 |
path: ~/.proof/solvers |
| 27 |
key: proof-solvers-${{ runner.os }} |
| 28 |
|
| 29 |
- name: Cache ReqProof index |
| 30 |
uses: actions/cache@v4 |
| 31 |
with: |
| 32 |
path: | |
| 33 |
.proof/index.db |
| 34 |
.proof/index.db-shm |
| 35 |
.proof/index.db-wal |
| 36 |
key: proof-index-${{ runner.os }}-${{ hashFiles('specs/**/*.req.yaml') }} |
| 37 |
restore-keys: | |
| 38 |
proof-index-${{ runner.os }}- |
| 39 |
|
| 40 |
- name: Install Z3 solver |
| 41 |
run: sudo apt-get update -qq && sudo apt-get install -y -qq z3 |
| 42 |
|
| 43 |
- uses: probelabs/proof-action@v1 |
| 44 |
with: |
| 45 |
fail-level: warn |
| 46 |
scope: full |
| 47 |
format: markdown |