Develop #336
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: Lint Codebase | |
on: | |
pull_request: | |
branches: [ main , develop] | |
permissions: | |
contents: read | |
jobs: | |
lint_frontend: | |
name: Lint Frontend | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout "${{ github.repository }}" | |
uses: actions/checkout@v3 | |
- name: Set up Node v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.5.1' | |
- name: Install system dependencies for canvas | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
build-essential \ | |
libcairo2-dev \ | |
libpango1.0-dev \ | |
libjpeg-dev \ | |
libgif-dev \ | |
librsvg2-dev | |
- name: Install dependencies | |
run: | | |
cd CoVAR-app && npm ci | |
- name: Lint Codebase | |
run: | | |
cd CoVAR-app && npm run lint | |
lint_backend: | |
name: Lint Backend | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout "${{ github.repository }}" | |
uses: actions/checkout@v3 | |
- name: Set up Node v22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.5.1' | |
- name: Install system dependencies for canvas | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
build-essential \ | |
libcairo2-dev \ | |
libpango1.0-dev \ | |
libjpeg-dev \ | |
libgif-dev \ | |
librsvg2-dev | |
- name: Install dependencies | |
run: | | |
cd server && npm ci | |
- name: Lint Codebase | |
run: | | |
cd server && npm run lint |