chore(release): version packages #51
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run test:ci | |
| - name: Debug coverage files | |
| run: | | |
| echo "Coverage directory contents:" | |
| ls -la coverage/ | |
| echo "LCOV file size:" | |
| wc -c coverage/lcov.info | |
| echo "LCOV file first 10 lines:" | |
| head -10 coverage/lcov.info | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage/lcov.info | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| - name: Upload coverage to Codecov (fallback) | |
| if: failure() | |
| run: | | |
| curl -Os https://cli.codecov.io/latest/linux/codecov | |
| chmod +x codecov | |
| ./codecov --verbose upload-process --fail-on-error --file ./coverage/lcov.info --token ${{ secrets.CODECOV_TOKEN }} |