Skip to content

Commit

Permalink
ci(frontend): format check
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb committed Aug 4, 2024
1 parent cb653f4 commit 53f5792
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check-format-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check PR Format and Test for frontend

on:
pull_request:
branches:
- master

jobs:
check-format:
name: Check PR Format
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Set Node.js 20.x
with:
node-version: 20.x
- uses: borales/actions-yarn@v5
name: Run install
with:
cmd: install
dir: frontend
- uses: borales/actions-yarn@v5
name: Check Format
with:
cmd: prettier --check .
dir: frontend

0 comments on commit 53f5792

Please sign in to comment.