-
-
Notifications
You must be signed in to change notification settings - Fork 923
56 lines (46 loc) · 1.24 KB
/
e2e-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
49
50
51
52
53
54
55
56
name: e2e tests
on:
push:
branches:
- main
- playwright-tests
pull_request:
branches:
- main
env:
WASP_TELEMETRY_DISABLE: 1
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Install Wasp
run: curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s
- name: Docker setup
uses: docker/setup-buildx-action@v3
- name: Cache Node Modules
uses: actions/cache@v4
with:
path: ~/.npm
key: node-modules-${{ hashFiles('app/package-lock.json') }}
- name: Install Node.js dependencies
run: |
cd app
npm ci
- name: Setup Env Vars not in github secrets
run: |
cd app
ls -la
test -f .env.server && echo ".env.server exists" || echo ".env.server does not exist"
cp .env.server.example .env.server
- name: Set up Playwright
run: |
cd app
npx playwright install --with-deps
- name: Run Playwright tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
cd app
DEBUG=pw:webserver npx playwright test