-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.48 KB
/
prusti.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
# 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) 2022 ETH Zurich.
name: Verify and Lint
on:
push:
branches:
- master
pull_request: # run this workflow on every pull_request
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout the current repository
uses: actions/checkout@v3
- name: Verify chapter 1 in Prusti
uses: viperproject/prusti-action@v1
with:
path: 'chapter1'
- name: Verify chapter 2 in Prusti
uses: viperproject/prusti-action@v1
with:
path: 'chapter2'
- name: Verify chapter 3 in Prusti
uses: viperproject/prusti-action@v1
with:
path: 'chapter3'
- name: Verify chapter 4 in Prusti
uses: viperproject/prusti-action@v1
with:
path: 'chapter4'
- name: Verify chapter 5 in Prusti
uses: viperproject/prusti-action@v1
with:
path: 'chapter5'
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path Cargo.toml --all-features -- -D warnings