-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·41 lines (34 loc) · 1.19 KB
/
github-actions.yml
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
name: Github Actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Chrome
run: |
CHROME_DRIVER_VERSION=114.0.5735.90;
echo $CHROME_DRIVER_VERSION;
wget http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo chmod +x chromedriver
sudo mv -f chromedriver /usr/bin/
rm chromedriver_linux64.zip
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: install selenium
run: wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.2.jar
- name: run selenium
run: java -jar selenium-server-4.1.2.jar standalone > /dev/null 2>&1 &
- name: Install
run: yarn install
- name: Configure nightwatch.conf.js for Github
run: node webship-init -ci github -os linux -b chrome
- name: Start
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn start &
- name: Test
run: yarn test