-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (46 loc) · 1.38 KB
/
main.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
name: on-push
on:
push:
branches:
- '**'
- '!**.no-actions'
# parallel jobs
jobs:
test-jasmine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm i --prefix ngapp
- run: npm run --prefix ngapp test:ci
test-cypress:
runs-on: ubuntu-latest
steps:
- uses: supercharge/[email protected]
with:
mongodb-version: 3.6
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: sudo apt-get install -y parallel
- run: npm -v
- run: npx --prefix ngapp node -v
- run: "parallel npm i --prefix ::: api ngapp"
- run: npm run --prefix api build || echo build had problems
- run: mongod &
- run: mongod_pid=$!
- run: mv ./api/.env.example ./api/.env
- run: FUDGE=1 AWS_SES_DISABLE=1 npm run --prefix api start &
- run: backend_pid=$!
- run: npm run --prefix ngapp e2e
test-backend:
runs-on: ubuntu-latest
steps:
- uses: supercharge/[email protected]
with:
mongodb-version: 3.6
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: mv ./api/.env.example ./api/.env
- run: npm install --prefix api
- run: npm run --prefix api build || echo build had problems
- run: NO_EMAILS=1 npm run test --prefix api