chore(deps): bump the dependencies group across 1 directory with 3 updates #7630
Workflow file for this run
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: webpack-dev-server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| - v4 | |
| pull_request: | |
| branches: | |
| - main | |
| - next | |
| - v4 | |
| # A new commit supersedes the previous one's jobs, so stop paying for them | |
| # across the whole matrix below. Only pull request runs share a group; every | |
| # other run gets a group of its own (`github.run_id`), because a group holds | |
| # at most one pending run and a later push would otherwise evict the one | |
| # waiting — `cancel-in-progress` protects the running run, not the queued one. | |
| # The branches this also builds on push (`main`, `next`, `v4`) publish the | |
| # coverage later comparisons are measured against, and losing one of those runs | |
| # would also hide a breakage that is already on the branch. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node-version: [lts/*] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build types | |
| run: npm run build:types | |
| - name: Check types | |
| run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'npm run build:types'"; exit 1; else echo "All types are valid"; fi | |
| - name: Validate changeset format | |
| if: github.event_name == 'pull_request' | |
| run: npm run validate:changeset | |
| test: | |
| name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [22.x, 24.x, 26.x] | |
| webpack-version: [latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Install Chrome for Puppeteer | |
| run: npx puppeteer browsers install chrome | |
| - name: Setup firefox | |
| if: matrix.os != 'windows-latest' | |
| uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2 | |
| with: | |
| firefox-version: latest | |
| - name: Link webpack-dev-server | |
| run: | | |
| cp -R client tmp-client | |
| npm link --ignore-scripts || true | |
| npm link webpack-dev-server --ignore-scripts || true | |
| rm -r client | |
| cp -R tmp-client client | |
| - name: Run tests for webpack version ${{ matrix.webpack-version }} | |
| run: npm run test:coverage | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: coverage-${{ matrix.os }}-${{ matrix.node-version }}-${{ matrix.webpack-version }} | |
| path: coverage/lcov.info | |
| if-no-files-found: error | |
| upload-coverage: | |
| name: Upload coverage to codecov | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Download coverage artifacts | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| pattern: coverage-* | |
| path: coverage | |
| - name: Submit coverage data to codecov | |
| uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: coverage |