Skip to content

ci: fix remark

ci: fix remark #68

Workflow file for this run

name: CI
on: [ push, pull_request ]
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
version: 2025.1.14
- name: Remove rust from mise
run: |
# a different rust version will be installed in the next step
mise rm rust
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt
- uses: Swatinem/[email protected]
- run: lefthook run --force pre-commit
- run: cargo hack test --feature-powerset
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose