-
Notifications
You must be signed in to change notification settings - Fork 500
48 lines (38 loc) · 1 KB
/
playwright-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
44
45
46
47
48
name: Run_Playwright_Tests_on_PRs
on:
pull_request:
paths-ignore:
- 'shows/*.md'
env:
PUBLIC_GITHUB_ID: ${{ secrets.PUBLIC_GITHUB_ID }}
GH_SECRET: ${{ secrets.GH_SECRET }}
DEEPGRAM_SECRET: ${{ secrets.DEEPGRAM_SECRET }}
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
SENTRY_AUTH_TOKEN: ''
DATABASE_URL: ${{ secrets.DATABASE_URL }}
UPSPLASH_TOKEN: ''
UPSPLASH_URL: ''
YOUTUBE_API_KEY: ''
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: pnpm-setup
uses: pnpm/action-setup@v4
with:
version: 8
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.18.2
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Setup DB
run: pnpm db:generate
- name: Install playwright browsers
run: pnpx playwright install --with-deps
- name: Run Playwright tests
run: pnpm run test