mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: adapt ci to new structure
This commit is contained in:
parent
4c215e91d5
commit
294d3f91b4
3 changed files with 30 additions and 12 deletions
18
.github/workflows/api-lint.yaml
vendored
Normal file
18
.github/workflows/api-lint.yaml
vendored
Normal 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"
|
||||||
8
.github/workflows/backend-lint.yaml
vendored
8
.github/workflows/backend-lint.yaml
vendored
|
|
@ -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
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
name: Frontend Lint
|
name: Web Lint
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "apps/web/**"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "apps/web/**"
|
||||||
jobs:
|
jobs:
|
||||||
next-lint:
|
next-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -11,6 +17,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd front && npm ci
|
run: npm ci
|
||||||
|
working-directory: ./apps/web
|
||||||
- name: Lint code
|
- name: Lint code
|
||||||
run: cd front && npm run lint
|
run: npm run lint
|
||||||
|
working-directory: ./apps/web
|
||||||
Loading…
Add table
Add a link
Reference in a new issue