Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Update build.yml with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
17zhangw authored Jan 29, 2024
1 parent b9e9f0d commit 71534e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Toolchain
run: rustup update stable && rustup default stable
run: rustup update stable && rustup default stable && rustup component add rustfmt
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Format check
run: cargo fmt --all -- --check
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info
- name: Archive code coverage results
Expand All @@ -32,7 +34,7 @@ jobs:
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: b74fae07-452c-41fb-8eb2-b164ed90340d
token: be8874e2-10d6-434f-9d52-db6094de31d6
files: lcov.info
name: codecov-umbrella # optional
fail_ci_if_error: true
Expand Down

0 comments on commit 71534e2

Please sign in to comment.