diff options
author | Yigit Sever | 2022-04-23 20:54:46 +0300 |
---|---|---|
committer | GitHub | 2022-04-23 20:54:46 +0300 |
commit | 1dfcd85f846f8ed3e193d25b0f302505ccef185d (patch) | |
tree | b9eea127056f3b9ca259ddc1fd80c10e25a512f6 /.github/workflows/rust.yml | |
parent | 21095d29f348d8c965df9871bbc0644de5000a53 (diff) | |
download | gradecoin-1dfcd85f846f8ed3e193d25b0f302505ccef185d.tar.gz gradecoin-1dfcd85f846f8ed3e193d25b0f302505ccef185d.tar.bz2 gradecoin-1dfcd85f846f8ed3e193d25b0f302505ccef185d.zip |
Update github actions
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r-- | .github/workflows/rust.yml | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 79251f5..f1cc36d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml | |||
@@ -1,22 +1,40 @@ | |||
1 | name: Rust | 1 | name: Check and Lint |
2 | 2 | ||
3 | on: | 3 | on: |
4 | push: | ||
5 | branches: [ main ] | ||
6 | pull_request: | 4 | pull_request: |
7 | branches: [ main ] | 5 | push: |
8 | 6 | branches: | |
7 | - main | ||
8 | |||
9 | env: | 9 | env: |
10 | CARGO_TERM_COLOR: always | 10 | CARGO_TERM_COLOR: always |
11 | 11 | ||
12 | jobs: | 12 | jobs: |
13 | build: | 13 | check: |
14 | 14 | name: Check | |
15 | runs-on: ubuntu-latest | ||
16 | steps: | ||
17 | - uses: actions/checkout@v2 | ||
18 | - uses: actions-rs/toolchain@v1 | ||
19 | with: | ||
20 | profile: minimal | ||
21 | toolchain: stable | ||
22 | override: true | ||
23 | - uses: actions-rs/cargo@v1 | ||
24 | with: | ||
25 | command: check | ||
26 | fmt: | ||
27 | name: Rustfmt | ||
15 | runs-on: ubuntu-latest | 28 | runs-on: ubuntu-latest |
16 | |||
17 | steps: | 29 | steps: |
18 | - uses: actions/checkout@v3 | 30 | - uses: actions/checkout@v2 |
19 | - name: Build | 31 | - uses: actions-rs/toolchain@v1 |
20 | run: cargo build --verbose | 32 | with: |
21 | - name: Run tests | 33 | profile: minimal |
22 | run: cargo test --verbose | 34 | toolchain: stable |
35 | override: true | ||
36 | - run: rustup component add rustfmt | ||
37 | - uses: actions-rs/cargo@v1 | ||
38 | with: | ||
39 | command: fmt | ||
40 | args: --all -- --check | ||