2021-02-24 10:48:41 +01:00
|
|
|
name: Lint
|
|
|
|
|
2023-11-07 00:53:36 +01:00
|
|
|
on:
|
|
|
|
pull_request: {}
|
|
|
|
merge_group: { types: [checks_requested] }
|
2023-04-01 22:39:19 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2020-07-22 05:32:13 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-02-24 10:48:41 +01:00
|
|
|
fmt:
|
2020-07-22 05:32:13 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-01 22:39:19 +02:00
|
|
|
|
2020-07-22 05:32:13 +02:00
|
|
|
steps:
|
2023-10-29 05:17:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2020-07-22 05:32:13 +02:00
|
|
|
|
2024-01-15 19:47:31 +01:00
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-04-01 22:39:19 +02:00
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
components: rustfmt
|
|
|
|
|
2021-02-24 10:48:41 +01:00
|
|
|
- name: Rustfmt Check
|
2023-01-27 21:36:05 +01:00
|
|
|
run: cargo fmt --all -- --check
|
2020-07-22 05:32:13 +02:00
|
|
|
|
2021-02-24 10:48:41 +01:00
|
|
|
clippy:
|
2023-04-01 22:39:19 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2021-02-24 10:48:41 +01:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-01 22:39:19 +02:00
|
|
|
|
2021-02-24 10:48:41 +01:00
|
|
|
steps:
|
2023-10-29 05:17:06 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-02-24 10:48:41 +01:00
|
|
|
|
2024-01-15 19:47:31 +01:00
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-04-01 22:39:19 +02:00
|
|
|
with: { components: clippy }
|
|
|
|
|
2023-10-29 02:55:34 +01:00
|
|
|
- uses: giraffate/clippy-action@v1.0.1
|
2020-07-22 05:32:13 +02:00
|
|
|
with:
|
2023-04-01 22:39:19 +02:00
|
|
|
reporter: 'github-pr-check'
|
2023-01-27 21:36:05 +01:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-10-29 02:55:34 +01:00
|
|
|
clippy_flags: --workspace --all-features --tests --examples --bins -- -Dclippy::todo -Aunknown_lints
|
2023-10-30 01:07:28 +01:00
|
|
|
|
|
|
|
check-external-types:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install Rust (nightly-2023-10-10)
|
2024-01-15 19:47:31 +01:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-10-30 01:07:28 +01:00
|
|
|
with:
|
|
|
|
toolchain: nightly-2023-10-10
|
|
|
|
|
|
|
|
- name: Install just
|
2024-05-27 23:24:55 +02:00
|
|
|
uses: taiki-e/install-action@v2.33.34
|
2023-10-30 01:07:28 +01:00
|
|
|
with:
|
|
|
|
tool: just
|
|
|
|
|
|
|
|
- name: Install cargo-check-external-types
|
2024-05-02 03:20:35 +02:00
|
|
|
uses: taiki-e/cache-cargo-install-action@v2.0.0
|
2023-10-30 01:07:28 +01:00
|
|
|
with:
|
|
|
|
tool: cargo-check-external-types@0.1.10
|
|
|
|
|
|
|
|
- name: check external types
|
2023-11-06 23:12:58 +01:00
|
|
|
run: just check-external-types-all +nightly-2023-10-10
|