CI #26
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
release: | |
types: [created] | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "20 23 * * 4" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install latest stable | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Lint with rustfmt | |
run: cargo fmt | |
- name: Lint with clippy -- no features | |
run: cargo clippy --all-targets | |
- name: Test with cargo -- no features | |
run: cargo test --workspace --all-targets | |
- name: Lint with clippy -- all features | |
run: cargo clippy --all-targets --all-features | |
- name: Test with cargo -- all features | |
run: cargo test --workspace --all-features --all-targets |