Skip to content

Instantly share code, notes, and snippets.

@myl7
Created August 23, 2023 12:20
Show Gist options
  • Save myl7/1429b29458e8b16b6e008d7986e7e449 to your computer and use it in GitHub Desktop.
Save myl7/1429b29458e8b16b6e008d7986e7e449 to your computer and use it in GitHub Desktop.
GitHub Actions Rust basic CI
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