-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.12 KB
/
deployment.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
name: Clean Arch Node API - Deployment
on:
pull_request:
branches: [main]
jobs:
continuous-integration:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version: [18x]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test
- name: Run Coverage
run : yarn test:cov
- name: Coveralls
uses: coverallsapp/github-action@v1
continuous-delivery:
runs-on: ubuntu-latest
needs: [continuous-integration]
steps:
- uses: actions/checkout@v2
- name: Deploy to heroku
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
buildpack: 'https://github.com/zidizei/heroku-buildpack-tsc#v2.0'