Closed paytonelsey3 closed 3 years ago
For anyone running into this issue, here's the updated yaml file that seems to work:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm build
- name: TestCoverage
id: testCovergae
uses: anuraag016/Jest-Coverage-Diff@master
with:
fullCoverageDiff: false
runCommand: "npx jest --passWithNoTests --collectCoverageFrom='[\"src/**/*.{js,jsx,ts,tsx}\"]' --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles test/.*test.*"
I'm trying to use this action in a microservice and I keep getting this error:
Error: Command failed: npx jest --coverage --coverageReporters="json-summary"
Here are my build steps:
I have node-version as 12.x and platform as ubuntu-latest. There's not a lot of information in the error message so I'm not sure what else to try.