-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (33 loc) · 1.04 KB
/
ci.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
name: ⚙️ CI
on:
push:
branches: [main]
pull_request:
jobs:
redwood-ci:
name: 🌲 Redwood CI
runs-on: ubuntu-latest
steps:
- name: 🌲 Redwood CI
uses: redwoodjs/project-ci-action@main
- run: npx playwright install --with-deps
- name: 🎭 Playwright E2E Tests
run: npx playwright test e2e
env:
DATABASE_URL: postgresql://test:password@localhost:5432/test
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
STRIPE_WEBHOOK_KEY: ${{ secrets.STRIPE_WEBHOOK_KEY }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results/
retention-days: 30
- uses: actions/upload-artifact@v4
if: always()
with:
name: example-store-e2e-web-server.log
path: /tmp/example-store-e2e-web-server.log
retention-days: 30