Skip to content

Commit

Permalink
Run rustfmt as part of CI (#24)
Browse files Browse the repository at this point in the history
* Run rustfmt as part of CI

Signed-off-by: Esteve Fernandez <esteve@apache.org>

* Run cargo fmt directly

Signed-off-by: Esteve Fernandez <esteve@apache.org>

* Use actions-rs for CI steps

Signed-off-by: Esteve Fernandez <esteve@apache.org>
  • Loading branch information
esteve committed Jul 27, 2020
1 parent f73f7a0 commit c768021
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/rust.yml
Expand Up @@ -47,8 +47,25 @@ jobs:
command: check

- name: Build
run: cargo build --verbose --all-targets
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-targets

- name: Clippy
run: cargo clippy --all --examples
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --examples

- name: Run tests
run: cargo test --verbose
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose

- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

0 comments on commit c768021

Please sign in to comment.