Merge base-display and base scales #5671
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: Test & Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next-major | |
| pull_request: | |
| jobs: | |
| build: | |
| if: ${{ github.repository == 'primer/primitives' }} | |
| name: Test & Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --no-audit --no-fund --ignore-scripts | |
| - name: Build tokens | |
| run: npm run build:tokens | |
| - name: Build fallbacks | |
| run: npm run build:fallbacks | |
| - name: Fetch base branch for removed token check | |
| if: github.event_name == 'pull_request' | |
| run: git fetch origin ${{ github.base_ref }} | |
| - name: Check removed tokens are documented | |
| if: github.event_name == 'pull_request' | |
| run: npm run check:removed-tokens -- --base origin/${{ github.base_ref }} | |
| - name: Code linting check | |
| run: npm run lint | |
| - name: Code formatting check | |
| run: npm run format:check | |
| - name: Run unit tests | |
| run: npm test |