mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-03 22:33:30 +02:00
update(CI): workflow updated for PR's
This commit is contained in:
@@ -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
|
||||
@@ -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 .
|
||||
@@ -1,2 +0,0 @@
|
||||
## Infrastructure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user