更改 RSC Editor 仓库分支 #99
Workflow file for this run
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: (Frontend) Nuxt Build on Pull Request | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'frontend/**' | |
jobs: | |
build: | |
name: Nuxt build | |
runs-on: ubuntu-latest | |
env: | |
NITRO_PRESET: cloudflare_pages | |
NODE_OPTIONS: '--max-old-space-size=4096' | |
steps: | |
- name: Checking out repository | |
uses: actions/checkout@v4 | |
- name: Setting up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.3.0' | |
- name: Setting up bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Installing dependencies | |
run: bun install | |
working-directory: frontend | |
- name: Run eslint | |
run: bun run lint | |
working-directory: frontend | |
- name: Run nuxt build | |
run: bun run build | |
working-directory: frontend |