From fad7c01f1c2050119aeed1dcdd0ee7882dbc595e Mon Sep 17 00:00:00 2001 From: quadseed Date: Fri, 16 Feb 2024 00:15:38 +0900 Subject: [PATCH] Update: [Workflow] add frontend build test and lint --- .github/workflows/front-build-test.yml | 27 +++++++++++++++++++++++ .github/workflows/front-lint.yml | 30 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/front-build-test.yml create mode 100644 .github/workflows/front-lint.yml diff --git a/.github/workflows/front-build-test.yml b/.github/workflows/front-build-test.yml new file mode 100644 index 0000000..b4ff394 --- /dev/null +++ b/.github/workflows/front-build-test.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/front-lint.yml b/.github/workflows/front-lint.yml new file mode 100644 index 0000000..57d4094 --- /dev/null +++ b/.github/workflows/front-lint.yml @@ -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 \ No newline at end of file