Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
opennms-bamboo committed Mar 15, 2023
2 parents 7160665 + e2eacd4 commit 060d08f
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -74,7 +85,7 @@ jobs:
committer_name: "CI/CD System"
from: develop
to: main
- build-dist
- build-merge
- run:
name: "Commit Changes"
command: |
Expand Down

0 comments on commit 060d08f

Please sign in to comment.