fix: give the bundler enough heap, and make CI build #3
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 | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Version consistency | |
| run: node scripts/check-version.mjs | |
| - name: Lint and format | |
| run: yarn check:ci | |
| - name: Typecheck | |
| run: yarn typecheck | |
| - name: Test | |
| run: yarn test | |
| # The release build was the only thing that bundled, so a failure that | |
| # only shows up there — an out-of-memory crash, a module that will not | |
| # resolve — reached a tag before anyone saw it. | |
| - name: Build | |
| run: yarn build |