From 78c1244441810f505c7e9e43c9e93d42a4354d19 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Fri, 16 Aug 2024 21:06:24 +0800 Subject: [PATCH] ci: lint --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2eb1153 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: + - main + + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + run_install: false + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: pnpm + + - run: pnpm i -g @antfu/ni + - run: nci + - run: nr lint + - run: nr typecheck