Merge pull request #87 from slaclab/swf-onboard #124
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: Lint & Format | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: ESLint & Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| # cache is documented but unavailable as of v4.2 | |
| # when available, enable and remove separate npm setup below | |
| # cache: true | |
| - name: Install pnpm dependencies with caching | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 23.11.0 | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: Run ESLint | |
| run: pnpm run lint | |
| - name: Check Prettier formatting | |
| run: pnpm run format:check | |
| - name: TypeScript type check | |
| run: pnpm exec tsc --noEmit |