Skip to content

Commit 02ce1e5

Browse files
Github actions: Separate the web-tests into a separate job.
This makes it easier to spot where things are broken and skipable in a more safe way.
1 parent a26ffc9 commit 02ce1e5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,28 @@ jobs:
147147
MDBOOK_BOOK__LANGUAGE: ${{ matrix.language }}
148148
run: mdbook test
149149

150+
web-tests:
151+
runs-on: ubuntu-latest
152+
needs: build
153+
steps:
154+
- name: Checkout
155+
uses: actions/checkout@v5
150156
- name: Setup Node
151-
if: matrix.language == 'en'
152157
uses: actions/setup-node@v5
153158
with:
154159
node-version: 22
155160
cache: "npm"
156161
cache-dependency-path: "tests/package-lock.json"
157162
- name: Install test framework
158-
if: matrix.language == 'en'
159163
run: npm install
160164
working-directory: ./tests
165+
- name: Download english book
166+
uses: actions/download-artifact@v6
167+
with:
168+
name: comprehensive-rust-en
169+
path: book/
161170
- name: Test Javascript
162-
if: matrix.language == 'en'
163-
run: cargo xtask web-tests --dir book/comprehensive-rust-${{ matrix.language }}/html
171+
run: cargo xtask web-tests --dir book/comprehensive-rust-en/html
164172

165173
po-diff:
166174
name: Translation diff

0 commit comments

Comments
 (0)