-
Notifications
You must be signed in to change notification settings - Fork 233
/
config.yml
50 lines (43 loc) · 1.01 KB
/
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
46
47
48
49
50
version: 2.1
orbs:
ship: auth0/[email protected]
codecov: codecov/codecov@3
jobs:
build:
parameters:
node-version:
type: string
default: "18"
docker:
- image: cimg/node:<< parameters.node-version >>
environment:
LANG: en_US.UTF-8
steps:
- checkout
- ship/node-install-packages
- run:
name: Run Linter
command: npm run lint
- run:
name: Run Tests
command: npm run test:ci
- store_artifacts:
path: ./coverage/<< parameters.node-version >>/lcov-report
- codecov/upload
workflows:
build-and-test:
jobs:
- build:
matrix:
parameters:
node-version: ["14.20", "16.18", "18.12"]
- ship/node-publish:
requires:
- build
context:
- publish-npm
- publish-gh
filters:
branches:
only:
- master