update(CI): workflow updated for PR's

This commit is contained in:
2026-07-05 19:36:53 +02:00
parent e3b9014c02
commit 890741335e
3 changed files with 37 additions and 27 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Format, lint, typecheck & build
on:
pull_request:
branches: ["master"]
jobs:
check:
runs-on: alpine
container: node:lts-alpine
steps:
- name: Install dependencies
run: apk add --no-cache git
- name: Checkout repo
uses: actions/checkout@v4
- name: Install frontend deps
working-directory: frontend
run: npm install
- name: Run eslint check
working-directory: frontend
run: npm run lint
- name: Run typecheck
working-directory: frontend
run: npm run typecheck
- name: Run Prettier check
working-directory: frontend
run: npx prettier --check .
- name: Run build check
working-directory: frontend
run: npm run build
-25
View File
@@ -1,25 +0,0 @@
name: Format frontend with Prettier
on:
push:
branches: ["master"]
jobs:
format:
runs-on: alpine
container: node:26-alpine
steps:
- name: Install dependencies
run: apk add --no-cache git
- name: Checkout repo
uses: actions/checkout@v4
- name: Install frontend deps
working-directory: frontend
run: npm install
- name: Run Prettier check
working-directory: frontend
run: npx prettier --check .
-2
View File
@@ -1,2 +0,0 @@
## Infrastructure