From e23d9fe7640794bccdfe1a5ccac33ae7e51b619c Mon Sep 17 00:00:00 2001 From: "Lukas.J.Han" Date: Thu, 26 Dec 2024 16:03:20 +0900 Subject: [PATCH] ci: add ci for checking format Signed-off-by: Lukas.J.Han --- .github/workflows/ci.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1c939a..40af1f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,6 +25,22 @@ jobs: with: path: ${{ github.workspace }} key: ${{ runner.os }}-build-${{ github.sha }}-${{ github.run_id }} + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - run: pnpm add -g pnpm + - name: 'Setup Node.js with pnpm cache' + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - run: pnpm install + - run: pnpm format:check bundlewatch: runs-on: ubuntu-latest