chore(deps): bump actions/upload-artifact from 4 to 7 #63
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: Rust | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| lint: | |
| name: fmt + clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: rustfmt | |
| run: cargo fmt --all --check | |
| - name: clippy | |
| run: cargo clippy --workspace --exclude sqlshield-precommit --exclude sqlshield-py --all-targets --all-features -- -D warnings | |
| test: | |
| name: test (${{ matrix.os }} / ${{ matrix.toolchain }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| toolchain: [stable] | |
| include: | |
| - os: ubuntu-latest | |
| toolchain: beta | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.os }}-${{ matrix.toolchain }} | |
| - name: build | |
| run: cargo build --workspace --exclude sqlshield-precommit --exclude sqlshield-py --all-targets --verbose | |
| - name: test | |
| run: cargo test --workspace --exclude sqlshield-precommit --exclude sqlshield-py --all-features --verbose |