Skip to content

Commit 194a9b7

Browse files
ci: migrate from zuul to webdriver.io
zuul is now archived [1] and does not support the new W3C WebDriver protocol, since it relies on the wd package [2] under the hood, which uses the (now deprecated) JSON Wire Protocol. We will now use the webdriver.io test framework, which allows to run our tests in local and on Sauce Labs (cross-browser and mobile tests). This allows us to run our tests on latest versions of Android and iOS, since Sauce Labs only supports the W3C WebDriver protocol for these platforms ([3]). [1]: https://github.com/defunctzombie/zuul [2]: https://github.com/admc/wd [3]: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/
1 parent a9758da commit 194a9b7

11 files changed

+9661
-13244
lines changed

.github/workflows/ci.yml

+23-12
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,51 @@ on:
66
schedule:
77
- cron: '0 0 * * 0'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-node:
1114
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1216

1317
strategy:
1418
matrix:
1519
node-version: [14, 16]
1620

1721
steps:
18-
- uses: actions/checkout@v3
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
1925
- name: Use Node.js ${{ matrix.node-version }}
2026
uses: actions/setup-node@v3
2127
with:
2228
node-version: ${{ matrix.node-version }}
23-
- run: npm ci
24-
- run: npm test
25-
env:
26-
CI: true
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Run tests
34+
run: npm test
2735

2836
test-browser:
2937
runs-on: ubuntu-latest
38+
timeout-minutes: 10
3039

3140
steps:
32-
- uses: actions/checkout@v3
33-
- name: Use Node.js
41+
- name: Checkout repository
42+
uses: actions/checkout@v3
43+
44+
- name: Use Node.js 16
3445
uses: actions/setup-node@v3
3546
with:
36-
node-version: '10.x'
37-
- run: npm ci
47+
node-version: 16
48+
49+
- name: Install dependencies
50+
run: npm ci
51+
3852
- run: npm test
3953
env:
40-
CI: true
4154
BROWSERS: 1
42-
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
4355
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
4456
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
45-
timeout-minutes: 20

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [["@babel/preset-env"]],
3+
};

0 commit comments

Comments
 (0)