Skip to content

Commit

Permalink
Adding workflow for JavaScript (SeleniumHQ#8894)
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Nov 22, 2020
1 parent f7da247 commit 5e8f10a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ build --test_env=DISPLAY
build --test_env=MOZ_HEADLESS
build --test_env=DASHBOARD_URL
build --test_env=LOCALAPPDATA
build --test_env=SELENIUM_BROWSER

test --test_timeout=180
35 changes: 35 additions & 0 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: JavaScript workflow

on:
push:
branches:
- trunk
pull_request:
branches:
- trunk

jobs:
build:
# Skip job based on the commit message, only works in push to branches for now
if: contains(toJson(github.event.commits), '[skip ci]') == false
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 15
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Setup bazelisk
uses: ./.github/actions/setup-bazelisk
- name: Start XVFB
run: Xvfb :99 &
- name: Run JavaScript tests on Firefox
run: bazel test //javascript/node/selenium-webdriver:tests
env:
DISPLAY: :99
SELENIUM_BROWSER: firefox
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.openqa.selenium.grid.log;

import io.opentelemetry.OpenTelemetry;
import io.opentelemetry.common.AttributeConsumer;
import io.opentelemetry.common.AttributeKey;
import io.opentelemetry.common.Attributes;
Expand Down

0 comments on commit 5e8f10a

Please sign in to comment.