refactor ci file. #2
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: CI checks | |
on: | |
pull_request: | |
branches: [ "main"] | |
push: | |
branches: [ "main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Cargo fmt check | |
run: cargo fmt --all -- --check | |
- name: Run tests | |
run: cargo test --all-features | |