Skip to content

Commit c703300

Browse files
committed
Add a check-all workflow that runs on lockfile changes
Signed-off-by: Oliver Gould <ver@buoyant.io>
1 parent d38b9e8 commit c703300

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/check-all.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Check all crates.
2+
#
3+
# This workflow checks that `Cargo.lock` is configured sufficiently so that each
4+
# crate can be compiled on its
5+
# own.
6+
name: check-all
7+
8+
permissions:
9+
contents: read
10+
11+
on:
12+
pull_request:
13+
paths:
14+
- Cargo.lock
15+
- .github/workflows/check-all.yml
16+
17+
env:
18+
CARGO_ACTION_FMT_VERSION: v0.1.3
19+
CARGO_INCREMENTAL: 0
20+
CARGO_NET_RETRY: 10
21+
RUST_BACKTRACE: short
22+
RUSTUP_MAX_RETRIES: 10
23+
24+
jobs:
25+
check-all:
26+
timeout-minutes: 20
27+
runs-on: ubuntu-latest
28+
container:
29+
image: docker://rust:1.56.1-buster
30+
steps:
31+
- run: |
32+
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"
33+
chmod 755 /usr/local/bin/cargo-action-fmt
34+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
35+
- run: cargo fetch
36+
- run: |
37+
cargo check --frozen \
38+
--workspace \
39+
--all-targets \
40+
--exclude=linkerd-meshtls-boring \
41+
--message-format=json | cargo-action-fmt
42+

.github/workflows/check-each.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
outputs:
7878
crates: ${{ steps.list-changed.outputs.crates }}
7979

80-
check:
80+
check-each:
8181
needs: list-changed-crates
8282
timeout-minutes: 20
8383
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)