chore: add GitHub Actions workflow for linting frontend, backend, and documentation
This commit is contained in:
36
.gitea/workflows/lint.yml
Normal file
36
.gitea/workflows/lint.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'frontend/**'
|
||||||
|
- 'backend/**'
|
||||||
|
- 'documentation/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'frontend/**'
|
||||||
|
- 'backend/**'
|
||||||
|
- 'documentation/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: 'pnpm'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
- name: Lint Frontend
|
||||||
|
if: success() || failure()
|
||||||
|
run: pnpm -F @memegoat/frontend lint
|
||||||
|
- name: Lint Backend
|
||||||
|
if: success() || failure()
|
||||||
|
run: pnpm -F @memegoat/backend lint
|
||||||
|
- name: Lint Documentation
|
||||||
|
if: success() || failure()
|
||||||
|
run: pnpm -F @bypass/documentation lint
|
||||||
Reference in New Issue
Block a user