Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGunflame authored Jan 6, 2023
1 parent a7609ca commit bb180c1
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: test
run: cargo test
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup component add clippy
- run: cargo clippy --all-targets --all-features -- -D warnings

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps --all-features

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo test

0 comments on commit bb180c1

Please sign in to comment.