Merge branch 'main' into copilot/define-workflow-permissions #94
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: Node.js CI | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| # Enable unprivileged user namespaces for Chrome sandbox | |
| # This is required because Ubuntu 23.10+ disables them by default | |
| # See: https://github.com/actions/runner-images/issues/9621 | |
| - name: Enable user namespaces | |
| run: sudo sysctl -w kernel.unprivileged_userns_clone=1 | |
| - run: npm install | |
| - run: npm run build --if-present | |
| - run: npm test | |
| env: | |
| CI: true |