Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ orbs:
jobs:
build:
docker:
- image: cimg/python:3.7
- image: cimg/python:3.12
parameters:
aws_bucket:
type: string
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

js_tests:
docker:
- image: circleci/buildpack-deps:18.04-browsers
- image: cimg/base:2026.10-26.04
steps:
- checkout
- install_container_dependencies
Expand Down Expand Up @@ -110,7 +110,7 @@ commands:
steps:
- run:
name: install npm packages
command: npm install
command: npm ci --ignore-scripts
- run:
name: install and check for secrets
command: npm run install-git-secrets
Expand All @@ -120,7 +120,10 @@ commands:
steps:
- run:
name: lint
command: npm run lint
command: npm run lint -- -f junit -o test-results/eslint/eslint.xml
- store_test_results:
path: test-results
when: always

install_container_dependencies:
steps:
Expand All @@ -142,6 +145,9 @@ commands:
- run:
name: run unit tests
command: bash -i -c 'npm run test'
- store_test_results:
path: test-results
when: always

workflows:
version: 2
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ git-secrets.sh
*.iml
dependency-reduced-pom.xml
target

# Test results (JUnit XML)
test-results/
28 changes: 26 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.0",
"jasmine": "^3.6.3",
"jasmine-reporters": "^2.5.2",
"jasmine-spec-reporter": "^6.0.0",
"prettier": "^2.3.1"
}
Expand Down
11 changes: 11 additions & 0 deletions spec/helpers/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ jasmine.getEnv().addReporter(
},
})
);

// Write JUnit XML on CircleCI so store_test_results can show a test summary
if (process.env.CIRCLECI) {
const reporters = require("jasmine-reporters");
jasmine.getEnv().addReporter(
new reporters.JUnitXmlReporter({
savePath: "test-results/jasmine",
consolidateAll: true,
})
);
}
Loading