Skip to content

Enable CI for merge queues #6

Enable CI for merge queues

Enable CI for merge queues #6

Workflow file for this run

name: ci
on:
merge_group:
pull_request:
push:
branches:
- master
defaults:
run:
shell: bash
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUSTDOCFLAGS: --deny warnings
RUSTFLAGS: --deny warnings
# for unix
PATH: ${{ github.workspace }}:${{ env.PATH }}

Check failure on line 21 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 21, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PATH .github/workflows/ci.yml (Line: 23, Col: 3): 'Path' is already defined
# for windows
Path: ${{ github.workspace }};${{ env.Path }}
jobs:
rust-lint:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, windows, macos]
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: ./scripts/download/cargo-nextest.sh
- run: cargo nextest run
- run: cargo clippy
- run: cargo doc --no-deps
cargo-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --check
# This task ensures, required packages can be built with a stable toolchain
# the only package requiring nightly should be `marker_rustc_driver` and
# optionally `marker_adapter`
cargo-check-on-stable:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, windows, macos]
steps:
- uses: actions/checkout@v3
- run: rm rust-toolchain.toml
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- run: >-
cargo check
--workspace
--exclude marker_rustc_driver
--exclude marker_lints
# Check the formatting of TOML files in the repository
toml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./scripts/download/taplo.sh
- run: ./taplo fmt --check
# Check for typos in the repository based on a static dictionary
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./scripts/download/typos.sh
- run: ./typos
# Check for unused dependencies that uses simple regex search,
# meaning it's ⚡️ blazingly ⚡️ fast
rust-unused-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./scripts/download/cargo-machete.sh
- run: ./cargo-machete