Frontend CI #6
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 CI | |
| on: [pull_request] | |
| jobs: | |
| setup: | |
| name: Checkout the code and install dependencies | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: yarn install | |
| link-check: | |
| name: Run ESLint linting check | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - name: Run dependencies | |
| run: yarn run lint | |
| format-check: | |
| name: Run Prettier formatting check | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| defaults: | |
| run: | |
| working-directory: ./frontend | |
| steps: | |
| - name: Run dependencies | |
| run: yarn run format-check |