build(deps): Bump wpt from 6ae7875
to 8c6b479
#8872
Workflow file for this run
This file contains 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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Unit tests | |
# Declare default permissions as read only. | |
permissions: read-all | |
env: | |
FORCE_COLOR: 3 | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: 'main' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- name: Set up Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- uses: google/wireit@4aad131006ea85c1e42af927534ebb13426dd730 # setup-github-actions-caching/v1.0.2 | |
- name: Install and build npm dependencies | |
run: npm ci | |
- name: Verify mapper size | |
run: du -sh lib/iife/mapperTab.js | |
- name: Run unit tests with coverage | |
run: npx nyc --reporter=lcov npm run unit && npx codecov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |