Switch CI to dtolnay/rust-toolchain@nightly, run cargo directly, and fix rc5 test typo
#383
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
| on: | |
| push: | |
| branches: [master] | |
| paths-ignore: | |
| - README.md | |
| - CHANGELOG.md | |
| - .gitignore | |
| - .github/** | |
| pull_request: | |
| branches: [master] | |
| types: [opened, synchronize, closed] | |
| workflow_dispatch: | |
| name: Nightly lints | |
| jobs: | |
| combo: | |
| name: Clippy + rustfmt | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-ubuntu-latest | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| profile: minimal | |
| components: rustfmt, clippy | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: "rust" | |
| - name: Setup mold Linker | |
| uses: rui314/setup-mold@v1 | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: Run cargo clippy | |
| env: | |
| SQLX_OFFLINE: true | |
| run: cargo clippy -- -D warnings |