Hide version dropdown on non-versioned paths #279
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: Validate | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| # Concurrency configuration to cancel previous runs on new commits | |
| concurrency: | |
| group: validate-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| name: ${{ matrix.check }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| check: | |
| - TypeScript Check | |
| - Lint Check | |
| - Format Check | |
| include: | |
| - check: TypeScript Check | |
| command: typecheck | |
| - check: Lint Check | |
| command: lint | |
| - check: Format Check | |
| command: format:check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: 'package-lock.json' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ${{ matrix.check }} | |
| run: npm run ${{ matrix.command }} |