restructuring #67
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: Test | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run test | |
run: cargo test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run rustfmt | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run check | |
run: cargo check | |
- name: Run clippy | |
run: cargo clippy -- -D warnings |