Open Hiep1210 opened 2 months ago
I followed the guide and added this into my workflow yaml file: test: name: Run tests and collect coverage runs-on: ubuntu-latest steps:
name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0
name: Set up Node uses: actions/setup-node@v4
name: Install dependencies run: npm install
name: Run tests run: npx jest --coverage
name: Upload results to Codecov uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}
The workflow failed and this was the log: Run npx jest --coverage sh: 1: jest: Permission denied Error: Process completed with exit code 126.
I reread the guide and did not find anything mentioned about permission, how can i grant permission to run coverage for jest ?
@Hiep1210 can you add a link to your CI run?
I followed the guide and added this into my workflow yaml file: test: name: Run tests and collect coverage runs-on: ubuntu-latest steps:
name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0
name: Set up Node uses: actions/setup-node@v4
name: Install dependencies run: npm install
name: Run tests run: npx jest --coverage
name: Upload results to Codecov uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }}
The workflow failed and this was the log: Run npx jest --coverage sh: 1: jest: Permission denied Error: Process completed with exit code 126.
I reread the guide and did not find anything mentioned about permission, how can i grant permission to run coverage for jest ?