Skip to content

Commit

Permalink
Merge pull request #76 from verygoodsecurity/fix-update-image
Browse files Browse the repository at this point in the history
update image
  • Loading branch information
AnnaKudriasheva authored Jan 18, 2024
2 parents 7457688 + b3770b0 commit aadc3a8
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,55 @@
version: 2.1

orbs:
node: cimg/deploy:2023.09-node
defaults_ci: &defaults_ci
working_directory: ~/vgs-collect-js
docker:
- image: cimg/deploy:2023.09-node

# === Scheduled Pipeline Parameters ===
parameters:
nightly-security-scan:
type: boolean
default: false

restore-cache-deps: &restore-cache-deps
restore_cache:
keys:
- node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- node-v1-{{ .Branch }}-
- node-v1-
paths:
- /usr/local/lib/node_modules

cache-deps: &cache-deps
save_cache:
key: node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- /usr/local/lib/node_modules

init-npm: &init-npm
run:
name: Install dependencies
command: |
sudo npm i -g nx typescript
sudo npm ci
jobs:
test:
executor: node/default
<<: *defaults_ci
steps:
- checkout
- node/install-packages:
cache-path: ~/project/node_modules
override-ci-command: npm install
- <<: *restore-cache-deps
- <<: *init-npm
- <<: *cache-deps
- run: npm run test

publish:
executor: node/default
<<: *defaults_ci
steps:
- checkout
- <<: *restore-cache-deps
- <<: *init-npm
- <<: *cache-deps
- run:
name: Authenticate with NPM
command: |
Expand Down

0 comments on commit aadc3a8

Please sign in to comment.