Repository navigation
Bump eslint to 10.13.0 and typescript-eslint to 8.72.0 #8
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: 'Unit tests' | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| push: | |
| branches: ['main'] | |
| permissions: | |
| contents: read | |
| # A newer push to a pull request supersedes its older run. Runs on main are | |
| # never cancelled, so every merge gets a complete result. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout pulp-ui (${{ github.ref }})' | |
| uses: actions/checkout@v7 | |
| - name: 'Install node 24' | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: 'Install dependencies' | |
| run: npm ci | |
| - name: 'App unit tests' | |
| run: npm test | |
| - name: 'sdk unit tests' | |
| run: npm test -w @pulp-ui/sdk | |
| - name: 'sdk type-check' | |
| run: npm run typecheck -w @pulp-ui/sdk | |
| macos-build: | |
| # A plain install and build with no environment variable and no flag: the | |
| # checkout is a git work tree, so the build stamp resolves its commit from | |
| # git. Guards against an install or build step that only works on Linux. | |
| runs-on: macos-latest | |
| steps: | |
| - name: 'Checkout pulp-ui (${{ github.ref }})' | |
| uses: actions/checkout@v7 | |
| - name: 'Install node 24' | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: 'Install dependencies' | |
| run: npm ci | |
| - name: 'Build' | |
| run: npm run build |