fix: test commands
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Setup metrics
|
||||
run: npm ci
|
||||
- name: Check contributions requirements
|
||||
run: npm test -- ci.test.js --noStackTrace
|
||||
run: npm run test-contrib
|
||||
env:
|
||||
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||
- name: Run linter
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
|
||||
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
|
||||
- name: Run tests
|
||||
run: docker run --entrypoint="" lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') npm test -- metrics.test.js
|
||||
run: docker run --entrypoint="" lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') npm test-metrics
|
||||
|
||||
# Run CodeQL on branch
|
||||
analyze:
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
"main": "index.mjs",
|
||||
"scripts": {
|
||||
"start": "node source/app/web/index.mjs",
|
||||
"test": "jest --runInBand --testPathIgnorePatterns presets.test.js",
|
||||
"test-presets": "jest --runInBand presets.test.js",
|
||||
"test": "jest --runInBand",
|
||||
"test-contrib": "jest --runInBand ci.test.js --noStackTrace",
|
||||
"test-presets": "jest --runInBand presets.test.js --noStackTrace",
|
||||
"test-metrics": "jest --runInBand metrics.test.js",
|
||||
"build": "node .github/scripts/build.mjs",
|
||||
"presets": "node .github/scripts/presets_examples.mjs",
|
||||
"quickstart": "node .github/scripts/quickstart/index.mjs",
|
||||
|
||||
Reference in New Issue
Block a user