-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.yml
45 lines (45 loc) · 961 Bytes
/
config.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
version: 2.1
orbs:
node: circleci/[email protected]
heroku: circleci/[email protected]
jobs:
test:
docker:
- image: cimg/node:16.10
steps:
- checkout
- node/install-packages:
pkg-manager: npm
- run: |
echo “Running tests...”
npm run test
build:
docker:
- image: cimg/node:16.10
steps:
- checkout
- node/install-packages:
pkg-manager: npm
- run: |
echo “Building project...”
npm run build
deploy:
executor: heroku/default
steps:
- checkout
- heroku/install
- run:
command: >
echo "The command above installs Heroku, the command below deploys.
What you do inbetween is up to you!"
- heroku/deploy-via-git
workflows:
simple_workflow:
jobs:
- build
- test:
requires:
- build
- deploy:
requires:
- test