Skip to content

Commit

Permalink
Add a check-all workflow that runs on lockfile changes
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Gould <[email protected]>
  • Loading branch information
olix0r committed Feb 17, 2022
1 parent d38b9e8 commit 5d83803
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/check-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Check all crates.
#
# This workflow checks that `Cargo.lock` is configured sufficiently so that each
# crate can be compiled on its
# own.
name: check-all

permissions:
contents: read

on:
pull_request:
paths:
- Cargo.lock
- .github/workflows/check-all.yml

env:
CARGO_ACTION_FMT_VERSION: v0.1.3
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10

jobs:
check-all:
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: docker://rust:1.56.1-buster
steps:
- run: |
curl --proto =https --tlsv1.3 -vsSfLo /usr/local/bin/cargo-action-fmt "https://github.com/olix0r/cargo-action-fmt/releases/download/release%2F${CARGO_ACTION_FMT_VERSION}/cargo-action-fmt-x86_64-unknown-linux-gnu"
chmod 755 /usr/local/bin/cargo-action-fmt
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- run: cargo fetch
- run: |
cargo check --frozen \
--workspace \
--all-targets \
--exclude=linkerd-meshtls-boring \
--message-format=json | cargo-action-fmt

0 comments on commit 5d83803

Please sign in to comment.