forked from SeleniumHQ/seleniumhq.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1001 Bytes
/
js-examples.yml
File metadata and controls
46 lines (43 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Run JavaScript examples
on:
workflow_dispatch:
schedule:
- cron: '40 22 * * *'
pull_request:
branches:
- trunk
paths:
- 'examples/javascript/**'
push:
branches:
- trunk
paths:
- 'examples/javascript/**'
env:
DISPLAY: :99
GITHUB_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
jobs:
test_examples:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v3
- name: Start Xvfb
if: matrix.os == 'ubuntu-latest'
run: Xvfb :99 &
- name: Install Requirements
working-directory: ./examples/javascript
run: npm install
- name: Run tests
uses: nick-invision/[email protected]
with:
timeout_minutes: 20
max_attempts: 3
command: |
cd examples/javascript
npm test