Update dev dependencies #1901
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
| # Requires repo secret: CODECOV_TOKEN ("repository upload token") | |
| name: Codecov | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize # HEAD has changed, e.g. a push happened | |
| - reopened | |
| push: | |
| branches: | |
| - 'main' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| codecov-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: formsort/action-check-codecov-config@v1 | |
| # !!! The codecov/project check should be required by GitHub !!! | |
| # See ../../codecov.yml for the configuration that drives the check | |
| codecov: | |
| needs: | |
| - codecov-lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| # Fix Puppeteer issues on Ubuntu 23.10+ | |
| # https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md#option-1_the-easiest-way | |
| - run: | | |
| echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
| # Setup and install | |
| - uses: actions/checkout@v5 | |
| - uses: volta-cli/action@v4 | |
| - run: npm ci | |
| # Run test coverage | |
| - run: npm run test:coverage | |
| - run: | | |
| curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov | |
| for dir in packages/*; do | |
| ./codecov --dir "${dir}" --flags "$(basename "${dir}")" --token "${CODECOV_TOKEN}" --verbose | |
| done | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |