File tree Expand file tree Collapse file tree 4 files changed +76
-20
lines changed Expand file tree Collapse file tree 4 files changed +76
-20
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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" ,
5050 "publishConfig" : {
5151 "access" : " public"
5252 }
53- }
53+ }
You can’t perform that action at this time.
0 commit comments