Skip to content

Commit 468b5e3

Browse files
committed
[javascript] Improving JavaScript workflow
[run javascript]
1 parent 3c6ff20 commit 468b5e3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/actions/bazel-test/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: 'Run bazel query and pass found targets to bazel test'
22
inputs:
33
query: # id of input
4+
description: 'Query to execute and to be used when running tests'
45
required: true
56
attempts:
7+
description: 'Test attempts before giving up'
68
required: false
79
default: 1
810
runs:

.github/actions/bazel/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: 'Run bazel'
2+
description: 'Simple action to run bazel commands'
23
inputs:
34
command: # id of input
5+
description: 'Bazel command to run'
46
required: true
57
runs:
68
using: "composite"

.github/workflows/ci-javascript.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ jobs:
6868
matrix.browser == 'chrome'
6969
- name: Start XVFB
7070
run: Xvfb :99 &
71-
- name: Run JavaScript tests on Firefox
72-
uses: ./.github/actions/bazel
71+
- name: Run JavaScript tests
72+
uses: ./.github/actions/bazel-test
7373
with:
74-
command: test //javascript/node/selenium-webdriver:tests
74+
query: //javascript/node/selenium-webdriver:tests
75+
attempts: 3
7576
env:
7677
DISPLAY: :99
7778
SELENIUM_BROWSER: ${{ matrix.browser }}

0 commit comments

Comments
 (0)