]> git.lizzy.rs Git - PAKEs.git/blob - .github/workflows/workspace.yml
128fc900291789ba61f12a86c00f96b2d655f1c7
[PAKEs.git] / .github / workflows / workspace.yml
1 name: Workspace
2
3 on:
4   pull_request:
5     paths-ignore:
6       - README.md
7   push:
8     branches: master
9     paths-ignore:
10       - README.md
11
12 jobs:
13   clippy:
14     runs-on: ubuntu-latest
15     steps:
16       - uses: actions/checkout@v1
17       - uses: actions-rs/toolchain@v1
18         with:
19           toolchain: 1.56.0 # MSRV
20           components: clippy
21           override: true
22           profile: minimal
23       - run: cargo clippy --all -- -D warnings
24
25   rustfmt:
26     runs-on: ubuntu-latest
27     steps:
28       - uses: actions/checkout@v1
29       - uses: actions-rs/toolchain@v1
30         with:
31           toolchain: stable
32           components: rustfmt
33           override: true
34           profile: minimal
35       - run: cargo fmt --all -- --check