-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace bors with Github native merge queue
- Loading branch information
Showing
17 changed files
with
207 additions
and
283 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: ci | ||
|
||
on: | ||
# Makes it possible to trigger via the GitHub UI (Actions tab) | ||
workflow_dispatch: | ||
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 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rust-test: | ||
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: cargo test --locked | ||
|
||
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: cargo clippy | ||
- run: cargo doc --no-deps | ||
|
||
rust-formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# We don't need any cache here, so use dtolnay action directly | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo fmt --check | ||
|
||
# This job ensures required packages can be built with a stable toolchain | ||
# except for some special ones that require nightly | ||
rust-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 | ||
--locked | ||
--workspace | ||
--exclude marker_rustc_driver | ||
--exclude marker_lints | ||
# 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 | ||
|
||
# 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 that the documentation can be built | ||
mdbook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: scripts/download/mdbook.sh | ||
- run: mdbook build docs/book |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.