Skip to content

Commit 598a18d

Browse files
committed
fix ci
1 parent 8ff748b commit 598a18d

File tree

1 file changed

+8
-59
lines changed

1 file changed

+8
-59
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -18,73 +18,22 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
test_and_lint:
22-
name: CI Gate (tests + lint)
21+
ci_gate:
22+
name: CI Gate (wait for CI)
2323
runs-on: ubuntu-latest
24-
container:
25-
image: rust:1.88.0
2624
steps:
2725
- uses: actions/checkout@v4
28-
29-
- name: Install Node.js
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: "20"
33-
34-
- name: Install pnpm
35-
uses: pnpm/action-setup@v4
26+
- name: Wait for CI checks to complete
27+
uses: actions/github-script@v7
3628
with:
37-
version: 10
38-
39-
- name: Install rustfmt and clippy
40-
run: |
41-
rustup component add rustfmt clippy
42-
43-
- name: Get pnpm store directory
44-
id: pnpm-cache
45-
run: |
46-
echo "STORE_PATH=$(pnpm store path)" >> "$GITHUB_OUTPUT"
47-
48-
- name: Cache pnpm dependencies
49-
uses: actions/cache@v4
50-
with:
51-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
52-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
53-
restore-keys: |
54-
${{ runner.os }}-pnpm-
55-
56-
- name: Cache cargo dependencies and build artifacts
57-
uses: actions/cache@v4
58-
with:
59-
path: |
60-
~/.cargo
61-
target/
62-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
63-
restore-keys: |
64-
${{ runner.os }}-cargo-
65-
66-
- name: Install pnpm dependencies
67-
run: pnpm install --frozen-lockfile
68-
69-
- name: Add node_modules/.bin to PATH
70-
run: echo "$PWD/node_modules/.bin" >> "$GITHUB_PATH"
71-
72-
- name: Download cargo dependencies
73-
run: cargo fetch --locked
74-
75-
- name: Check formatting
76-
run: cargo fmt -- --check
77-
78-
- name: Run linting
79-
run: cargo clippy --all-targets --all-features -- -D warnings
80-
81-
- name: Run tests
82-
run: cargo test --all
29+
script: |
30+
const wait = require('./.github/wait-for-checks.js');
31+
await wait({ github, context, core, checks: ["Test"] });
8332
8433
build:
8534
name: Build Docs
8635
runs-on: ubuntu-latest
87-
needs: test_and_lint
36+
needs: ci_gate
8837
steps:
8938
- uses: actions/checkout@v4
9039

0 commit comments

Comments
 (0)