From 23e69988e1aac60fdec942f345183b42a064a458 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Fri, 17 May 2024 11:04:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/server-lint.yml | 34 +++++++++++++++++++++++++++++++ .github/workflows/web-lint.yml | 34 +++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/server-lint.yml create mode 100644 .github/workflows/web-lint.yml diff --git a/.github/workflows/server-lint.yml b/.github/workflows/server-lint.yml new file mode 100644 index 00000000..3abae653 --- /dev/null +++ b/.github/workflows/server-lint.yml @@ -0,0 +1,34 @@ +# Lint +name: Server Lint + +on: + pull_request: + branches: + - feature/workflow + - develop + - main + - releases/** + - feature/** + paths: + - server/** + workflow_dispatch: + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: cd server && npm install + + - name: Lint + run: npm run lint diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml new file mode 100644 index 00000000..5ec203a0 --- /dev/null +++ b/.github/workflows/web-lint.yml @@ -0,0 +1,34 @@ +# Lint +name: Web Lint + +on: + pull_request: + branches: + - feature/workflow + - develop + - main + - releases/** + - feature/** + paths: + - server/** + workflow_dispatch: + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: cd web && npm install + + - name: Lint + run: npm run lint