Migrate to pnpm #952
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: "actions" | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
timeout-minutes: 15 | |
env: | |
SERVER_ENV: local | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: cache playwright browsers | |
id: playwright-cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/ms-playwright | |
key: playwright-${{ hashFiles('**/package-lock.json') }} | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm exec playwright install-deps | |
- run: npm run build | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
- run: pnpm run lint | |
- run: pnpm run test |