Skip to content

Commit 29f792f

Browse files
authored
ci(mojaloop/#3454): remove unneeded configs (#166)
ci(mojaloop/#3454): remove unneeded configs - mojaloop/project#3454 - removed unneeded NVM and AWS configs - replaced deprecated `prefix` property with `destination` - updated `github-cli` circleci orb
1 parent 6c4d60b commit 29f792f

File tree

10 files changed

+1034
-1212
lines changed

10 files changed

+1034
-1212
lines changed

.circleci/config.yml

+5-15
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2.1
99
orbs:
1010
slack: circleci/slack@4.12.5 # Ref: https://github.com/mojaloop/ci-config/tree/master/slack-templates
1111
pr-tools: mojaloop/pr-tools@0.1.10 # Ref: https://github.com/mojaloop/ci-config/
12-
gh: circleci/github-cli@2.1.0
12+
gh: circleci/github-cli@2.2.0
1313

1414
##
1515
# defaults
@@ -28,9 +28,6 @@ defaults_docker_Dependencies: &defaults_docker_Dependencies |
2828
apk --no-cache add bash bash-doc bash-completion
2929
apk --no-cache add -t build-dependencies make gcc g++ python3 libtool autoconf automake jq
3030

31-
defaults_awsCliDependencies: &defaults_awsCliDependencies |
32-
apk --no-cache add aws-cli
33-
3431
defaults_license_scanner: &defaults_license_scanner
3532
name: Install and set up license-scanner
3633
command: |
@@ -218,7 +215,7 @@ jobs:
218215
command: npm -s run test:unit
219216
- store_artifacts:
220217
path: ./test/results
221-
prefix: test
218+
destination: test
222219
- store_test_results:
223220
path: ./test/results
224221

@@ -240,10 +237,10 @@ jobs:
240237
command: mkdir -p ./audit/results
241238
- run:
242239
name: Check for new npm vulnerabilities
243-
command: npm run audit:check --silent -- --json > ./audit/results/auditResults.json
240+
command: npm run audit:check -- -o json > ./audit/results/auditResults.json
244241
- store_artifacts:
245242
path: ./audit/results
246-
prefix: audit
243+
destination: audit
247244

248245
audit-licenses:
249246
executor: default-docker
@@ -254,16 +251,14 @@ jobs:
254251
- checkout
255252
- run:
256253
<<: *defaults_license_scanner
257-
- run:
258-
<<: *defaults_configure_nvm
259254
- restore_cache:
260255
key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
261256
- run:
262257
name: Run the license-scanner
263258
command: cd /tmp/license-scanner && pathToRepo=$CIRCLE_WORKING_DIRECTORY make run
264259
- store_artifacts:
265260
path: /tmp/license-scanner/results
266-
prefix: licenses
261+
destination: licenses
267262

268263
release:
269264
executor: default-docker
@@ -272,8 +267,6 @@ jobs:
272267
name: Install general dependencies
273268
command: *defaults_docker_Dependencies
274269
- checkout
275-
- run:
276-
<<: *defaults_configure_nvm
277270
- restore_cache:
278271
name: Restore dependency cache
279272
keys:
@@ -308,8 +301,6 @@ jobs:
308301
sudo apt-get update && sudo apt-get install -y git
309302
- gh/install
310303
- checkout
311-
- run:
312-
<<: *defaults_configure_nvm
313304
- run:
314305
<<: *defaults_configure_git
315306
- run:
@@ -429,7 +420,6 @@ jobs:
429420
template: SLACK_TEMP_RELEASE_FAILURE
430421

431422
workflows:
432-
version: 2
433423
build_and_test:
434424
jobs:
435425
- pr-tools/pr-title-check:

audit-ci.jsonc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
3+
// audit-ci supports reading JSON, JSONC, and JSON5 config files.
4+
// Only use one of ["low": true, "moderate": true, "high": true, "critical": true]
5+
"moderate": true,
6+
"allowlist": [
7+
]
8+
}

audit-resolve.json

Whitespace-only changes.

0 commit comments

Comments
 (0)