-
-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (46 loc) · 1.48 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
on:
pull_request:
branches: [main]
name: Run Tests
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: ~/ChumsApp
submodules: 'true'
- name: Checkout Tests
uses: actions/checkout@v2
with:
repository: LiveChurchSolutions/ChumsTests
path: ~/ChumsTests
submodules: 'true'
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
working-directory: ~/ChumsApp
run: npm ci
- name: ChumsApp - Copy .env
working-directory: ~/ChumsApp
run: cp dotenv.sample.txt .env
- name: Cypress run with env
uses: cypress-io/github-action@v2
with:
working-directory: ~/ChumsTests
start: npm start
wait-on: 'http://localhost:3101'
spec: |
cypress/integration/!(Donations).spec.ts
env:
CYPRESS_ATTENDANCE_API: 'https://attendanceapi.staging.churchapps.org'
CYPRESS_GIVING_API: 'https://givingapi.staging.churchapps.org'
CYPRESS_MEMBERSHIP_API: 'https://membershipapi.staging.churchapps.org'
CYPRESS_CHURCH_WEB_APPS_URL: 'https://staging.churchapps.org'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}