From 743540d652e381dad2141c12154a06b76f427143 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Wed, 13 Mar 2024 22:51:10 +0800 Subject: [PATCH] ci: add lint --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..581d8ca --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: lint + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + lint: + name: lint + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: 'false' + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.3.1' + + - name: Lint + run: | + corepack enable + yarn install --immutable + yarn build + yarn lint + shell: bash