47 lines
1005 B
YAML
47 lines
1005 B
YAML
# Each job should typically run in under 5 minutes.
|
|
name: lint
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**/*.rs"
|
|
- justfile
|
|
- .github/workflows/lint.yml
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_NET_RETRY: 10
|
|
RUSTUP_MAX_RETRIES: 10
|
|
RUSTFLAGS: "-D warnings -A deprecated"
|
|
|
|
jobs:
|
|
clippy:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/linkerd/dev:v38-rust
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
- run: just fetch
|
|
- run: just clippy
|
|
|
|
fmt:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/linkerd/dev:v38-rust
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
- run: just check-fmt
|
|
|
|
docs:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/linkerd/dev:v38-rust
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
- run: just fetch
|
|
- run: just doc
|
|
|