From a5c8fb1309fc2e407a11ab8d0fe7b82b9d0e2384 Mon Sep 17 00:00:00 2001 From: INS Date: Fri, 12 Jul 2024 10:28:19 +0800 Subject: [PATCH] chore(frontend): add lint --- .github/workflows/frontend-lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/frontend-lint.yml diff --git a/.github/workflows/frontend-lint.yml b/.github/workflows/frontend-lint.yml new file mode 100644 index 00000000..8eee9c3c --- /dev/null +++ b/.github/workflows/frontend-lint.yml @@ -0,0 +1,26 @@ +name: Linter + +on: [pull_request, push] + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: 'true' + + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '20' + + - uses: pnpm/action-setup@v4 + - name: Install dependency + run: pnpm install + + - name: Build + run: npm run lint