-
Notifications
You must be signed in to change notification settings - Fork 35
53 lines (47 loc) · 1.46 KB
/
test-ing.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
42
43
44
45
46
47
48
49
50
51
52
53
name: Test .ing sites
on:
schedule:
- cron: '0 14 * * *'
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
browser: firefox
- os: windows-latest
browser: chromium
- os: macos-latest
browser: webkit
name: Smoke Test
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: stage
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}-${{ runner.os }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
- name: Install browsers
run: npx playwright install --with-deps ${{ matrix.browser }}
- name: Run the tests
run: |
npx run test/e2e -t "@ing" -h -p signing -b ${{ matrix.browser }} --bypassBotDetection
npx run test/e2e -t "@ing" -h -p editing -b ${{ matrix.browser }} --bypassBotDetection
env:
USER_AGENT_SUFFIX: "${{ secrets.USER_AGENT_SUFFIX }}"
- name: Save test logs
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: reports
path: reports/