jest-coverage-report-action: The process '/usr/bin/git' failed with exit code 128

Describe a bug

After the recent releases, I’ve been seeing errors with pulling down code and running the tests. May be related to the updated package in #340 Can’t determine which release it was as they 2.1.3 and 2.2.0 happened so close together over the weekend when I wasn’t running tests.

Expected behavior

The action should be able to pull code and run as expect

Details

  • Action version: v2

  • OS, where your action is running (windows, linux): linux

  • action.yml file
    ```yml
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v1
        - name: Use Node.js 16.15.0
          uses: actions/setup-node@v1
          with:
              node-version: 16.15.0
              registry-url: 'https://npm.pkg.github.com/'
        - uses: ArtiomTr/jest-coverage-report-action@v2
          with:
              test-script: npm run test:cov
              annotations: none
          env:
            NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
    ```
    
  • Screenshots
    <!-- If you encounter an incorrect coverage comment display, replace this comment with screenshot -->
    
    <!-- If your action unexpectedly fails, please replace this comment with a screenshot of your console  -->
    

Image 2023-02-06 at 11 40 17

</details>

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 8
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Reverted to the v2.1.3 version, so v2 should work now.

Hi @ArtiomTr 👋 I have the following action file:

 coverage:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Install Node
        uses: actions/setup-node@v3
        with:
          node-version: '14'
      - name: Coverage Report Packages
        uses: ArtiomTr/jest-coverage-report-action@v2
        with:
          package-manager: yarn
          test-script: yarn run test:packages
          custom-title: Coverage report - Packages
      - name: Coverage Report Explorer
        uses: ArtiomTr/jest-coverage-report-action@v2
        with:
          package-manager: yarn
          working-directory: apps/@explorer
          test-script: yarn run test
          custom-title: Coverage report - Explorer

on the first coverage report everything goes fine. but the second report always fails. I can post the error logs, if you need it, but they look very similar to the one above. Anyway, I manage to fix this by creating two separate jobs. But just wanted to make you aware of the issue.

@ArtiomTr awesome thank you for the fast fix