Skip to content

feat: setup lint gh-actions #14

feat: setup lint gh-actions

feat: setup lint gh-actions #14

Workflow file for this run

name: Lint
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
frontend:
defaults:
run:
working-directory: ./frontend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache-dependency-path: ./frontend/package-lock.json
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run eslint
run: npm run lint
backend:
defaults:
run:
working-directory: ./backend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true
- name: Install dependencies
run: poetry install --no-interaction
- name: Run isort and flake8
run: poetry run poe lint