-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.57 KB
/
pr-check-e2e.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
name: PR Cypress e2e Checks
on:
pull_request:
paths:
- 'apps/api/**'
- 'apps/web/**'
- 'packages/common/**'
- '.github/workflows/pr-check-e2e.yml'
jobs:
pr-checks:
runs-on: ubuntu-latest
timeout-minutes: 20
environment:
name: dev
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node v18
uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/cache@v3
name: Cache yarn
with:
path: ./.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
- name: Install PostgreSQL client
run: sudo apt-get update && sudo apt-get install -y postgresql-client
- name: Install dependencies
run: yarn install
- name: Run application and Cypress e2e tests
run: make test-e2e
env:
CYPRESS_RECORD_KEY: '${{ secrets.CYPRESS_RECORD_KEY }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
ENV_NAME: 'local'
E2E_TEST_USERNAME: '${{ secrets.E2E_TEST_USERNAME}}'
E2E_TEST_PASSWORD: '${{ secrets.E2E_TEST_PASSWORD}}'
AUTH_URL: 'http://localhost:8080'
AUTH_REALM: 'ien'
AUTH_CLIENTID: 'IEN'
NEXT_PUBLIC_API_URL: 'http://localhost:4000/api/v1'
NEXT_PUBLIC_AUTH_REALM: 'ien'
NEXT_PUBLIC_AUTH_CLIENTID: 'IEN'
NEXT_PUBLIC_AUTH_URL: 'http://localhost:8080'
NEXT_PUBLIC_DISABLE_USER_GUIDE: 'true'