revert(v2): hydrate gallery cards per-card via /roms/{id}/simple #353
Workflow file for this run
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 Checks | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| push: | |
| branches: | |
| - "master" | |
| paths: | |
| - "frontend/**" | |
| permissions: read-all | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.3.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5.0.0 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: frontend | |
| - name: Run tests (vitest, includes Storybook play() tests) | |
| run: npm test | |
| working-directory: frontend | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.3.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5.0.0 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: frontend | |
| - name: Build | |
| run: npm run build | |
| working-directory: frontend |