Skip to content

Initial github workflows #2

Initial github workflows

Initial github workflows #2

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
backend-lint:
name: Backend Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- name: Set up poetry
run: pipx install poetry==2.1.2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'poetry'
cache-dependency-path: ./backend/poetry.lock
- name: Install dependencies
run: poetry install --only=main,dev
- name: Run linting
run: poetry run pre-commit run --all-files
frontend-lint:
name: Frontend Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.14'
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint