Created
August 23, 2023 12:20
-
-
Save myl7/1429b29458e8b16b6e008d7986e7e449 to your computer and use it in GitHub Desktop.
GitHub Actions Rust basic CI
This file contains hidden or 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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- run: cargo test --all-features | |
- run: cargo fmt --check | |
- run: cargo clippy --all-features -- --no-deps -Dwarnings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment