Skip to content

Commit 54cb536

Browse files
authored
fix: switched to github actions (#66)
BREAKING CHANGE: dropped support for node 8 * chore: switching to github actions * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * remove chromedriver * config * cd * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * cd * cd * cd * Update nightwatch-testing-library.yml * Update nightwatch-testing-library.yml * cd 79 * cd 79 * cd 79 * cd 79 * Revert "cd 79" This reverts commit 1b91b8c. * added release
1 parent 3c97bf1 commit 54cb536

File tree

4 files changed

+76
-20
lines changed

4 files changed

+76
-20
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: nightwatch-testing-library
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: 'node ${{ matrix.node }} chrome ${{ matrix.os }} '
11+
runs-on: '${{ matrix.os }}'
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
node: [12, 10]
16+
steps:
17+
- uses: nanasess/setup-chromedriver@master
18+
with:
19+
chromedriver-version: '79.0.3945.36'
20+
- run: |
21+
export DISPLAY=:99
22+
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
- uses: actions/checkout@v1
27+
- run: npm ci
28+
- run: npm run validate
29+
release:
30+
runs-on: ubuntu-latest
31+
needs: test
32+
steps:
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 12
36+
- uses: actions/checkout@v1
37+
- run: npm ci
38+
- run: npm run build
39+
- run: ls -asl dist
40+
- run: npx semantic-release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

nightwatch.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
2-
"src_folders": [
3-
"tests/nightwatch"
4-
],
5-
"globals_path": "tests/globals",
6-
"webdriver": {
7-
"start_process": true,
8-
"server_path": "node_modules/.bin/chromedriver",
9-
"port": 9515
10-
},
11-
"test_settings": {
12-
"default": {
13-
"desiredCapabilities": {
14-
"browserName": "chrome"
15-
}
2+
"src_folders": ["tests/nightwatch"],
3+
"globals_path": "tests/globals",
4+
"webdriver": {
5+
"start_process": true,
6+
"server_path": "node_modules/.bin/chromedriver",
7+
"port": 9515
8+
},
9+
"test_settings": {
10+
"default": {
11+
"desiredCapabilities": {
12+
"browserName": "chrome",
13+
"javascriptEnabled": true,
14+
"acceptSslCerts": true,
15+
"chromeOptions": {
16+
"prefs": {
17+
"intl.accept_languages": "en-US,en"
18+
},
19+
"args": ["--headless"]
1620
}
21+
}
1722
}
18-
}
23+
}
24+
}

package-lock.json

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"simmerjs": "^0.5.6"
3131
},
3232
"devDependencies": {
33-
"chromedriver": "^79.0.0",
33+
"chromedriver": "^79.0.3",
3434
"eslint": "^6.5.1",
3535
"kcd-scripts": "^1.2.1",
3636
"npm-run-all": "^4.1.5",
@@ -50,4 +50,4 @@
5050
"publishConfig": {
5151
"access": "public"
5252
}
53-
}
53+
}

0 commit comments

Comments
 (0)