forked from gigiosilva/salty-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
52 lines (52 loc) · 1.32 KB
/
codemagic.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
43
44
45
46
47
48
49
50
51
52
workflows:
default:
environment:
node: 14.16.1
npm: latest
groups:
- salty
triggering:
events:
- push
branch_patterns:
- pattern: '*'
include: true
source: true
- pattern: 'master'
include: false
source: false
cancel_previous_builds: false
scripts:
- name: Install dependencies
script: yarn install --immutable --immutable-cache --check-cache
- name: Run tests
script: yarn run test
- name: Run build
script: yarn run build
- name: Run lint
script: yarn run lint
production:
environment:
node: 14.16.1
npm: latest
groups:
- salty
triggering:
events:
- push
branch_patterns:
- pattern: 'master'
include: true
source: true
cancel_previous_builds: false
scripts:
- name: Install dependencies
script: yarn install --immutable --immutable-cache --check-cache
- name: Run tests
script: yarn run test
- name: Run build
script: yarn run build
- name: Run lint
script: yarn run lint
- name: Publish Heroku
script: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/api-salty-sparkdigital.git HEAD:master -f --no-verify