chore: adapt ci to new structure

This commit is contained in:
swve 2023-10-15 13:16:16 +02:00
parent 4c215e91d5
commit 294d3f91b4
3 changed files with 30 additions and 12 deletions

18
.github/workflows/api-lint.yaml vendored Normal file
View file

@ -0,0 +1,18 @@
name: API Lint
on:
push:
paths:
- "apps/api/**"
pull_request:
paths:
- "apps/api/**"
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Ruff lint
uses: chartboost/ruff-action@v1
with:
src: "./apps/api"

View file

@ -1,8 +0,0 @@
name: Backend Lint
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1

View file

@ -1,5 +1,11 @@
name: Frontend Lint
on: [push, pull_request]
name: Web Lint
on:
push:
paths:
- "apps/web/**"
pull_request:
paths:
- "apps/web/**"
jobs:
next-lint:
runs-on: ubuntu-latest
@ -11,6 +17,8 @@ jobs:
with:
node-version: 18.x
- name: Install dependencies
run: cd front && npm ci
run: npm ci
working-directory: ./apps/web
- name: Lint code
run: cd front && npm run lint
run: npm run lint
working-directory: ./apps/web