Merge pull request #3188 from hey-api/changeset-release/main #5494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - docs/** | |
| pull_request: | |
| paths-ignore: | |
| - docs/** | |
| concurrency: | |
| group: ${{ github.workflow }}=${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| upload: | |
| name: Upload | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node-version: ['24.10.0'] | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: pnpm/[email protected] | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build packages | |
| run: pnpm build --filter="@hey-api/**" | |
| - name: Run test coverage | |
| run: pnpm test:coverage | |
| - name: Upload code coverage to codecov.io | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./packages/openapi-ts/coverage | |
| flags: unittests | |
| fail_ci_if_error: true |