Add Prettier, Husky, Linting and create staging branch #5
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches-ignore: [main] | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| # Once smoke tests exist (modernization task A4), add: | |
| # - run: npx playwright install --with-deps | |
| # - run: npm run test:e2e |