-
Notifications
You must be signed in to change notification settings - Fork 2k
42 lines (35 loc) · 1.11 KB
/
e2e.yaml
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
name: Public API Tests
on:
deployment_status:
jobs:
api-tests:
timeout-minutes: 30
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build utils
working-directory: packages/utils
run: pnpm build
- name: Run tests
working-directory: apps/web
env:
E2E_BASE_URL: ${{ github.event.deployment_status.environment_url }}
E2E_TOKEN: ${{ secrets.E2E_TOKEN }}
E2E_TOKEN_OLD: ${{ secrets.E2E_TOKEN_OLD }}
E2E_USER_ID: ${{ secrets.E2E_USER_ID }}
E2E_USER_ID_OLD: ${{ secrets.E2E_USER_ID_OLD }}
E2E_WORKSPACE_ID: ${{ secrets.E2E_WORKSPACE_ID }}
run: pnpm test