-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.15 KB
/
ci.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
name: ci
on:
push:
branches:
- main
- '[0-9]+.x'
tags:
- '*'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node
id: setup-node
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Deps
run: |
make deps
- name: Lint
run: |
make lint
- name: Test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
make test
deploy:
needs:
- test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy To Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ secrets.HEROKU_APP }}
run: |
heroku container:login
heroku container:push -a $HEROKU_APP web
heroku container:release -a $HEROKU_APP web