-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
1 changed file
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,42 @@ orbs: | |
branch-management: opennms/[email protected] | ||
|
||
commands: | ||
build-dist: | ||
restore-node-cache: | ||
steps: | ||
- restore_cache: | ||
name: Restore Package Cache | ||
keys: | ||
- npm-cache-v1-{{ .Branch }}-{{ checksum "package-lock.json" }} | ||
- npm-cache-v1-{{ .Branch }} | ||
- npm-cache-v1- | ||
- run: | ||
name: Install Dependencies | ||
command: npm ci | ||
save-node-cache: | ||
steps: | ||
- save_cache: | ||
name: Save Package Cache | ||
key: npm-cache-v1-{{ .Branch }}-{{ checksum "package-lock.json" }} | ||
paths: | ||
- ~/.npm | ||
build-dist: | ||
steps: | ||
- restore-node-cache | ||
- run: | ||
name: Install Dependencies | ||
command: npm ci | ||
- save-node-cache | ||
- run: | ||
name: Run dist build | ||
no_output_timeout: 20m | ||
command: npm run dist | ||
build-merge: | ||
steps: | ||
- restore-node-cache | ||
- run: | ||
name: Install Dependencies | ||
command: npm ci | ||
- run: | ||
name: Run merge build | ||
no_output_timeout: 20m | ||
command: npm run build && npm run docs | ||
|
||
jobs: | ||
build: | ||
|
@@ -33,13 +49,8 @@ jobs: | |
- checkout | ||
- build-dist | ||
- run: | ||
name: Run tests | ||
no_output_timeout: 20m | ||
command: npm run lint && npm run test | ||
- run: | ||
name: Build documentation | ||
name: pack API documentation | ||
command: | | ||
npm run docs | ||
pushd dist/docs | ||
zip -9 -r ../../build/api.zip . | ||
- store_artifacts: | ||
|
@@ -74,7 +85,7 @@ jobs: | |
committer_name: "CI/CD System" | ||
from: develop | ||
to: main | ||
- build-dist | ||
- build-merge | ||
- run: | ||
name: "Commit Changes" | ||
command: | | ||
|