feedback icon indicating copy to clipboard operation
feedback copied to clipboard

permission denied when running jest coverage in githubaction

Open Hiep1210 opened this issue 1 year ago • 1 comments

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 avatar Sep 14 '24 11:09 Hiep1210