Merge pull request #194 from COS301-SE-2024/stable #275
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: Run ESLint on Push and Pull Requests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
name: Run ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18.17.0 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies for the frontend | |
run: bun install | |
working-directory: src/client | |
- name: Install dependencies for the backend | |
run: bun install | |
working-directory: src/server/workspace | |
- name: Run Frontend Linters | |
run: bun run lint | |
working-directory: src/client | |
- name: Run Backend Linters | |
run: bun run lint | |
working-directory: src/server/workspace |