-
Notifications
You must be signed in to change notification settings - Fork 35
46 lines (39 loc) · 1.13 KB
/
integration-test.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
name: Integration Tests
on:
workflow_dispatch:
inputs:
testCodeBranch:
description: 'Test Code Branch'
required: true
default: 'stage'
type: string
jobs:
run-integration-tests:
name: Integration Tests
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: ${{ inputs.testCodeBranch }}
- 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
- name: Run the tests
run: npm run int3
- name: Save test logs
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: screenshots
path: |
test/integration/*/screenshots/**/*.test.png
test/integration/*/screenshots/**/*.diff.png