-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.09 KB
/
github-action.yml
File metadata and controls
45 lines (37 loc) · 1.09 KB
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
name: Letcode WDIO Regression
on:
# schedule:
# - cron: '0 23 * * *' #7AM PHT
# - cron: '0 08 * * *' #4PM PHT
workflow_dispatch:
jobs:
build:
environment: main
runs-on: ubuntu-latest
env:
HEADLESS: ${{ secrets.HEADLESS }}
BASE_URL: ${{ secrets.BASE_URL }}
ELM_TIMEOUT: ${{ secrets.BASE_URL }}
DEBUG: ${{ secrets.DEBUG }}
RANDOM_USER_API_URL: ${{ secrets.RANDOM_USER_API_URL }}
RANDOM_USER_API_ENDPOINT: ${{ secrets.RANDOM_USER_API_ENDPOINT }}
#GOOGLE_CHAT_WEBHOOK: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Update Chromedriver
if: always()
run: npm uninstall chromedriver && npm install chromedriver@latest
- name: Run WDIO Test
if: always()
run: npm run ciregression