Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests run 2 times instead of 1 #425

Open
piotrwalczak1 opened this issue Apr 11, 2024 · 2 comments
Open

Tests run 2 times instead of 1 #425

piotrwalczak1 opened this issue Apr 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@piotrwalczak1
Copy link

Describe a bug

Why the tests run 2 times in a row instead of 1?
image

Then it's running it for the 2nd time?
image

Expected behavior

Only 1 test run should be present

Details

  • Action version: 2.3.0
  • OS, where your action is running (windows, linux): Linux
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}
      - uses: ArtiomTr/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          test-script: npm run test:ci

Additional context

In github actions I can see tests are run twice instead of just once.

@piotrwalczak1 piotrwalczak1 added the bug Something isn't working label Apr 11, 2024
@lmalvasia
Copy link

I've seen the same issue in our pipelines. Looks like it's running jest twice.

@ab14bhardwaj
Copy link

@ piotrwalczak1 The process involves running a test twice to compare the coverage report between the base and feature branches. You can gauge the disparities by examining the differences in the statements, branches, lines, and function fields between the two test results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants