Skip to content

Commit 645ef05

Browse files
committed
[ci] Run small JS tests
1 parent c2dda23 commit 645ef05

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/ci-javascript.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@ jobs:
1212
name: Build
1313
cache-key: javascript-build
1414
run: bazel build //javascript/node/selenium-webdriver:selenium-webdriver
15+
16+
small-tests:
17+
name: Small Tests
18+
needs: build
19+
uses: ./.github/workflows/bazel.yml
20+
with:
21+
name: Small Tests
22+
cache-key: javascript-small-tests
23+
run: bazel test //javascript/node/selenium-webdriver:small-tests
24+
1525
browser-tests:
1626
name: Browser Tests
17-
needs: build
27+
needs: small-tests
1828
uses: ./.github/workflows/bazel.yml
1929
strategy:
2030
fail-fast: false
@@ -25,7 +35,8 @@ jobs:
2535
with:
2636
name: Browser Tests (${{ matrix.browser }})
2737
browser: ${{ matrix.browser }}
28-
cache-key: node
29-
run: |
30-
export SELENIUM_BROWSER=${{ matrix.browser }}
31-
bazel test --flaky_test_attempts 3 //javascript/node/selenium-webdriver:${{matrix.browser}}-browser-tests
38+
cache-key: javascript-${{matrix.browser}}-browser-tests
39+
run: >
40+
bazel test
41+
--flaky_test_attempts 3
42+
//javascript/node/selenium-webdriver:${{ matrix.browser }}-browser-tests

0 commit comments

Comments
 (0)