-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
41 lines (40 loc) · 1.07 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
version: 2.1
orbs:
node: circleci/node@5.0.2
slack: circleci/slack@4.10.1
jobs:
test:
executor:
name: node/default
tag: '16.5'
steps:
- checkout
- run:
name: Install pkg-config
command: sudo apt-get update -y && sudo apt-get install -y pkg-config libusb-1.0-0
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- node/install-packages
- run:
command: npm run build
- run:
command: npm run test -- --ci --runInBand --reporters=default --reporters=jest-junit
environment:
JEST_JUNIT_OUTPUT_DIR: ./reports/junit/
- store_test_results:
path: ./reports/junit/
- slack/notify:
event: fail
branch_pattern: main|master
template: basic_fail_1
- slack/notify:
event: pass
branch_pattern: main|master
template: basic_success_1
workflows:
workflow:
jobs:
- test:
context:
- test