mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-06-14 22:01:19 -04:00
fix: [UEPR-57] add generate locals to ci-cd workflow
This commit is contained in:
parent
45de5f5ef6
commit
5ca5c20a3e
3 changed files with 3 additions and 2 deletions
1
.github/workflows/ci-cd.yml
vendored
1
.github/workflows/ci-cd.yml
vendored
|
@ -113,6 +113,7 @@ jobs:
|
|||
GTM_ENV_AUTH: ${{ secrets.GTM_ENV_AUTH }}
|
||||
- name: unit tests
|
||||
run: |
|
||||
npm run test:generate-translations
|
||||
JEST_JUNIT_OUTPUT_NAME=unit-jest-results.xml npm run test:unit:jest:unit -- --reporters=jest-junit
|
||||
JEST_JUNIT_OUTPUT_NAME=localization-jest-results.xml npm run test:unit:jest:localization -- --reporters=jest-junit
|
||||
npm run test:unit:tap -- --output-file ./test/results/unit-raw.tap
|
||||
|
|
|
@ -9,14 +9,14 @@
|
|||
"test:lint:ci": "eslint . --ext .js,.jsx,.json --format junit -o ./test/results/lint-results.xml",
|
||||
"test:health": "jest ./test/health/*.test.js",
|
||||
"test:integration": "jest ./test/integration/*.test.js --reporters=default --maxWorkers=5",
|
||||
"test:unit": "npm run test:build-translations && npm run test:unit:jest && npm run test:unit:tap",
|
||||
"test:unit": "npm run test:generate-translations && npm run test:unit:jest && npm run test:unit:tap",
|
||||
"test:unit:jest": "npm run test:unit:jest:unit && npm run test:unit:jest:localization",
|
||||
"test:unit:jest:unit": "jest ./test/unit/ --env=jsdom --reporters=default",
|
||||
"test:unit:jest:localization": "jest ./test/localization/*.test.js --reporters=default",
|
||||
"test:unit:tap": "tap ./test/{unit-legacy,localization-legacy}/ --no-coverage -R classic",
|
||||
"test:unit:convertReportToXunit": "tap ./test/results/unit-raw.tap --no-coverage -R xunit > ./test/results/unit-tap-results.xml",
|
||||
"test:coverage": "tap ./test/{unit-legacy,localization-legacy}/ --coverage --coverage-report=lcov",
|
||||
"test:build-translations": "node ./bin/build-translations.js",
|
||||
"test:generate-translations": "node ./bin/generate-translations.js",
|
||||
"build": "npm run clean && npm run translate && NODE_OPTIONS=--max_old_space_size=8000 webpack --bail",
|
||||
"build:analyze": "ANALYZE_BUNDLE=true npm run build",
|
||||
"clean": "rm -rf ./build && rm -rf ./intl && mkdir -p build && mkdir -p intl",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue