Skip to content

Commit c460ece

Browse files
expose secrets to action
1 parent 13b9908 commit c460ece

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.github/workflows/playwright.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main, master]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [main, master]
77
jobs:
88
test:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: lts/*
16-
- name: Install dependencies
17-
run: npm install -g pnpm && pnpm install
18-
- name: Install Playwright Browsers
19-
run: pnpm exec playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: pnpm exec playwright test
22-
- uses: actions/upload-artifact@v4
23-
if: ${{ !cancelled() }}
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm install -g pnpm && pnpm install
18+
- name: Install Playwright Browsers
19+
run: pnpm exec playwright install --with-deps
20+
- name: Run Playwright tests
21+
env:
22+
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
23+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
24+
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
25+
TEST_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
26+
run: pnpm exec playwright test
27+
- uses: actions/upload-artifact@v4
28+
if: ${{ !cancelled() }}
29+
with:
30+
name: playwright-report
31+
path: playwright-report/
32+
retention-days: 30

0 commit comments

Comments
 (0)