miden-crypto/.github/workflows/ci.yml
.github/workflows/ci.ymlRaw
1name: CI
2on:
3 push:
4 branches:
5 - main
6 pull_request:
7 types: [opened, repoened, synchronize]
8
9jobs:
10 test:
11 name: Test Rust ${{matrix.toolchain}} on ${{matrix.os}}
12 runs-on: ${{matrix.os}}-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 toolchain: [stable, nightly]
17 os: [ubuntu]
18 steps:
19 - uses: actions/checkout@main
20 - name: Install rust
21 uses: actions-rs/toolchain@v1
22 with:
23 toolchain: ${{matrix.toolchain}}
24 override: true
25 - name: Test
26 uses: actions-rs/cargo@v1
27 with:
28 command: test
29
30 clippy:
31 name: Clippy
32 runs-on: ubuntu-latest
33 steps:
34 - uses: actions/checkout@main
35 - name: Install minimal stable with clippy
36 uses: actions-rs/toolchain@v1
37 with:
38 profile: minimal
39 toolchain: stable
40 components: clippy
41 override: true
42
43 - name: Clippy
44 uses: actions-rs/cargo@v1
45 with:
46 command: clippy
47 args: --all -- -D clippy::all -D warnings
48
49 rustfmt:
50 name: rustfmt
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@main
54 - name: Install minimal stable with rustfmt
55 uses: actions-rs/toolchain@v1
56 with:
57 profile: minimal
58 toolchain: stable
59 components: rustfmt
60 override: true
61
62 - name: rustfmt
63 uses: actions-rs/cargo@v1
64 with:
65 command: fmt
66 args: --all -- --check