Skip to content

Commit

Permalink
Update: [Workflow] add frontend build test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
quadseed committed Feb 15, 2024
1 parent 35da152 commit fad7c01
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/front-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Frontend Build Test

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: Change directory
run: cd frontend

- name: Install Dependencies
run: npm install --frozen-lockfile

- name: build
run: npm run build
30 changes: 30 additions & 0 deletions .github/workflows/front-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Frontend Lint

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: Change directory
run: cd frontend

- name: Install Dependencies
run: npm ci

- name: Run next lint
run: yarn run lint

- name: Run prettier check
run: yarn run prettier:check

0 comments on commit fad7c01

Please sign in to comment.