Skip to content

Commit

Permalink
Add rustfmt to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nordzilla committed Feb 1, 2024
1 parent 3fe9dd0 commit a9cca19
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,27 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting
run: cargo fmt -- --check

build:
runs-on: ubuntu-latest
needs: check-format
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose

test:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose -- --test-threads=1
- name: Install cargo-llvm-cov
Expand All @@ -30,4 +43,3 @@ jobs:
files: codecov.json
fail_ci_if_error: true
uses: codecov/codecov-action@v3

0 comments on commit a9cca19

Please sign in to comment.