Skip to content
Snippets Groups Projects
Unverified Commit dbe09b9e authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

merge jobs

parent 37fac9f2
No related branches found
No related tags found
No related merge requests found
# name: Format, check and test
# I've merged all these into a single job since it's /way/ faster. caching should work for other jobs like building
name: format, check and test
on: [push, pull_request]
jobs:
cache:
name: cargo-cache
fmt-check-test:
name: format check and test
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v3
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
format:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v3
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: rustfmt
components: rustfmt, clippy
- run: cargo fmt -- --all-features
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v3
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo clippy --all-features
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v3
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo test --all-features
\ No newline at end of file
- run: cargo test --all-features
- uses: https://github.com/Swatinem/rust-cache@v2
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment