-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (47 loc) · 1.23 KB
/
adapter.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
name: Adapter
env:
CI: true
FORCE_COLOR: 1
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/ms-playwright
on:
push:
branches:
- master
paths:
- 'packages/adapter/**'
- .github/workflows/adapter.yml
- pnpm-lock.yaml
pull_request:
paths:
- 'packages/adapter/**'
- .github/workflows/adapter.yml
- pnpm-lock.yaml
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- run: pnpm install
- run: pnpm --filter filsnap-adapter exec playwright install --with-deps chromium
- run: pnpm -r --filter filsnap-adapter run lint
- run: pnpm -r --filter filsnap-adapter exec depcheck
- run: pnpm -r --filter filsnap-adapter run test
id: tests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: packages/snap/playwright-report/
retention-days: 30