usable source maps #1060
This file contains 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: | |
branches: ["main"] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
# Deal with OOM https://github.com/vitejs/vite/issues/2433 | |
- run: NODE_OPTIONS="--max-old-space-size=8192" pnpm build | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm lint | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test |