-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.44 KB
/
apps-demo02-playwright.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
name: demo02 playwright tests
on:
push:
branches: [main]
# paths:
# - 'apps/demo02-presence/**'
pull_request:
branches: [main]
# paths:
# - 'apps/demo02-presence/**'
env:
PNPM_WORKSPACE: 'demo02-presence'
WORKSPACE_PATH: 'apps/demo02-presence'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.5
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: pnpm -F ${PNPM_WORKSPACE} install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
working-directory: ${{ env.WORKSPACE_PATH }}
- name: Build the app
run: pnpm -F ${PNPM_WORKSPACE} run build
- name: Run Playwright tests
run: pnpm -F ${PNPM_WORKSPACE} run test:integration
# working-directory: ${{ env.WORKSPACE_PATH }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: demo02-presence-playwright-report
path: ${{ env.WORKSPACE_PATH }}/playwright-report/
retention-days: 10