generated from adobe/franklin-library
-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.yml
75 lines (67 loc) · 1.77 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 2.1
executors:
node18:
docker:
- image: cimg/node:18.20
orbs:
codecov: codecov/codecov@4.0.1
commands:
setup:
steps:
- checkout
- run:
name: Installing Dependencies
command: npm ci
- run:
name: Validate orbs
command: |
export GITHUB_TOKEN=$GH_TOKEN
curl --http1.1 -fLSs https://circle.ci/cli | DESTDIR=~ bash
~/circleci > /dev/null # first run checks for updates
find . -name orb.yml -print0 | xargs -0 -I% ~/circleci orb validate %
- run:
name: prepare test git user
command: git config --global user.email "circleci@example.com" && git config --global user.name "CircleCi Build"
jobs:
build:
executor: node18
steps:
- setup
- run: mkdir junit
- run:
name: Lint
command: npm run lint
- run:
name: Getting Code Coverage
command: npm run test
- codecov/upload
- store_test_results:
path: junit
- store_artifacts:
path: junit
release:
executor: node18
steps:
- setup
- run:
name: revert changes to package-lock.json
command: git checkout -- package-lock.json
# note that npm release (semantic release) is done via github workflow
- run:
name: Semantic Orb Release
command: |
curl --http1.1 -fLSs https://circle.ci/cli | DESTDIR=~ bash
~/circleci > /dev/null # first run checks for updates
node src/orb-release
workflows:
version: 2
build:
jobs:
- build
- release:
context: Project Helix
requires:
- build
filters:
branches:
only: main