generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.8 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
SBL_DEV_PORT: "8899"
SBL_OIDC_AUTHORITY: "http://localhost:8880/realms/regtech"
SBL_OIDC_CLIENT_ID: "regtech-client"
SBL_OIDC_REDIRECT_URI: "http://localhost:${SBL_DEV_PORT}/filing"
SBL_REGTECH_BASE_URL: "http://localhost:8881"
SBL_MAIL_BASE_URL: "http://localhost:8765"
SBL_FILING_BASE_URL: "http://localhost:8882"
SBL_LOGOUT_REDIRECT_URL: ""
SBL_VALIDATION_TIMEOUT_SECONDS: "1200"
SBL_LONGPOLLING_DELAY_SECONDS: "backoff"
SBL_UPLOAD_FILE_SIZE_LIMIT_BYTES: "50000000"
SBL_ENABLE_PLAYWRIGHT_TEST_SETTINGS: "false"
SBL_PLAYWRIGHT_TEST_TARGET: "http://localhost:8899"
SBL_PLAYWRIGHT_TEST_KC_TARGET: "http://localhost:8880/"
SBL_PLAYWRIGHT_TEST_KC_REALM: "regtech"
SBL_PLAYWRIGHT_TEST_KC_CLI_USERNAME: "admin"
SBL_PLAYWRIGHT_TEST_KC_CLI_CLIENT_ID: "admin-cli"
SBL_PLAYWRIGHT_TEST_KC_CLI_CLIENT_SECRET: "local_test_only"
SBL_PLAYWRIGHT_TEST_KC_CLI_GRANT_TYPE: "client_credentials"
SBL_PLAYWRIGHT_TEST_KC_ADMIN_USERNAME: "admin1"
SBL_PLAYWRIGHT_TEST_KC_ADMIN_PASSWORD: "admin"
SBL_PLAYWRIGHT_TEST_KC_ADMIN_CLIENT_ID: "regtech-client"
SBL_PLAYWRIGHT_TEST_KC_ADMIN_GRANT_TYPE: "password"
jobs:
React:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Clean Yarn cache
run: yarn cache clean
- name: Install dependencies
run: yarn
- name: Run React tests
run: yarn test:ci
Cypress:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: yarn
- name: Run React tests
run: yarn test:e2e:ci