Add chunkFilename configuration for pthread worker chunks in webpack … #1585
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 | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-24.04 # Upgrade to Ubuntu 24.04 | |
| name: Node.js CI | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js from .nvmrc | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: Install ChromiumHeadless | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y chromium-browser | |
| - name: Get npm cache directory | |
| id: npm-cache-dir | |
| shell: bash | |
| run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
| - uses: actions/cache@v4 | |
| id: npm-cache | |
| with: | |
| path: ${{ steps.npm-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install | |
| run: npm ci | |
| - name: Tests | |
| run: npm test | |
| - name: Build Docs | |
| run: npm run docs |