-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.27 KB
/
on_push.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
name: Verified
on: [push]
jobs:
verify_pushed_commit:
runs-on: ubuntu-latest
steps:
- name: Install Rust stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Check out repository code
uses: actions/checkout@v2
- name: Load cargo cache
id: cache
uses: ./.github/actions/cargo-cache
- name: Install cargo-todox binary crate # ALLOW TODOX
run: which cargo-todox || cargo install cargo-todox # ALLOW TODOX
- name: Install cargo-tarpaulin binary crate
run: which cargo-tarpaulin || cargo install cargo-tarpaulin
- name: Install cargo-coverage-annotations binary crate
run: which cargo-coverage-annotations || cargo install cargo-coverage-annotations
- name: Install cargo-udeps binary crate
run: which cargo-udeps || cargo install cargo-udeps
- name: Verify commit
run: |
cd ${{ github.workspace }}
make on-push
- name: Upload coverage
run: |
cd ${{ github.workspace }}
bash <(curl -s https://codecov.io/bash)