diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a54586f..35b65d06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,8 +19,15 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm test - # - uses: codecov/codecov-action@v1 - # if: matrix.node-version == 14 - # with: - # fail_ci_if_error: true + - name: Run tests + if: matrix.node-version != 24 + run: npm test + - name: Run tests with coverage + if: matrix.node-version == 24 + run: npm run build && npm run lint && npm run test:setup && npx c8 --reporter=lcov ava + - name: Upload coverage to Qlty + if: matrix.node-version == 24 + uses: qltysh/qlty-action/coverage@v2 + with: + token: ${{ secrets.QLTY_COVERAGE_TOKEN }} + files: coverage/lcov.info diff --git a/package.json b/package.json index 4d854198..5235bfa2 100644 --- a/package.json +++ b/package.json @@ -104,6 +104,7 @@ "@types/node": "^25.2.1", "@types/prettier": "^3.0.0", "ava": "^7.0.0", + "c8": "^10.1.3", "dedent": "^1.7.1", "execa": "^9.6.1", "husky": "^9.1.7",