burn more github action minutes thank you microsoft #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: [push, pull_request] | |
jobs: | |
src: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
components: rustfmt, clippy | |
- uses: actions/checkout@master | |
- name: Format src | |
run: cargo fmt --all -- --check | |
- name: Clippy src (no default features, hashbrown) | |
run: cargo clippy --no-default-features --features hashbrown -- -D warnings | |
- name: Clippy src (all features) | |
run: cargo clippy --all-features -- -D warnings | |
dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
components: rustfmt, clippy | |
- uses: actions/checkout@master | |
- name: Format dev | |
run: cargo fmt --all -- --check | |
working-directory: ./dev | |
- name: Clippy dev (all features) | |
run: cargo clippy --all-features -- -D warnings | |
working-directory: ./dev |