-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.37 KB
/
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
47
# Adapted from https://github.com/actions/starter-workflows/blob/e9e00b017736d3b3811cedf1ee2e8ceb3c48e3dd/ci/npm-publish.yml
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre_deploy:
runs-on: ubuntu-latest
name: Deploy
permissions:
# Permissions required for the changesets action
# to be able to create a new branch and open a pull request
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
# Reference: https://github.com/changesets/changesets/issues/517#issuecomment-1182094769
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- run: pnpm run build
- name: Run Playwright tests
run: pnpm exec playwright test
- run: pnpm run changeset-status
#- uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30