Issue 80 and 81: Art in Game Showcase and Individual Game Pages #509
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 code checks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: ["opened", "synchronize", "reopened", "edited"] | |
| workflow_dispatch: | |
| jobs: | |
| format: | |
| name: Run Prettier | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: client | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: client/package-lock.json | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Run Prettier | |
| run: npm run format:check | |
| lint: | |
| name: Run ESLint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: client | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: client/package-lock.json | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Run Eslint | |
| run: npm run lint:strict && npm run lint | |
| typecheck: | |
| name: Check types | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: client | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: client/package-lock.json | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Run tsc | |
| run: npm run typecheck |