chore: pin GitHub Actions to commit SHAs and update to latest version… #827
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: Frontend CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "ui/**" | |
| - ".github/workflows/frontend-ci.yaml" | |
| pull_request: | |
| # Keep this workflow directly rerunnable from PR-only maintenance commits. | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| paths: | |
| - "ui/**" | |
| - ".github/workflows/frontend-ci.yaml" | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: "20" | |
| cache: "pnpm" | |
| cache-dependency-path: ui/pnpm-lock.yaml | |
| - name: Install dependencies | |
| working-directory: ui | |
| run: pnpm install --frozen-lockfile | |
| - name: Run tests | |
| working-directory: ui | |
| run: pnpm test | |
| - name: Build | |
| working-directory: ui | |
| run: pnpm build |