Modernize browser extensions with prebuilt packages and shared popup #671
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: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node-version: [24.x, 26.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| working-directory: node | |
| - run: npm run build | |
| working-directory: node | |
| - run: npm test | |
| working-directory: node | |
| - run: npm run typecheck | |
| working-directory: node | |
| - run: node node_modules/eslint/bin/eslint.js . --ext .ts --ignore-path ../.gitignore | |
| working-directory: node | |
| - run: npm ci | |
| working-directory: chrome/build | |
| - run: npm test | |
| working-directory: chrome/build | |
| - run: npm run build | |
| working-directory: chrome/build | |
| - run: node validate | |
| working-directory: repository | |
| detection: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - run: npm ci | |
| working-directory: node | |
| - run: npm run build | |
| working-directory: node | |
| - name: Restore cached data for test-detection | |
| uses: actions/cache@v4 | |
| id: cache-testdata | |
| with: | |
| path: repository/tmp | |
| key: ${{ runner.os }}-test-detection-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-test-detection- | |
| - run: node test-detection.js | |
| working-directory: repository |