-
Notifications
You must be signed in to change notification settings - Fork 332
43 lines (39 loc) · 1.1 KB
/
tests.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
name: Tests
on:
push:
branches: [main, feature/**]
pull_request:
branches: [main, feature/**]
workflow_dispatch:
inputs:
mode:
description: 'Runtime Mode: "standard" or "interactive"'
required: false
default: 'standard'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-1.28.0
- run: npm ci
- run: npm run check:types
- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- run: DEBUG=pw:webserver CI=true npm run test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
path: test-results