From a9e84139149abc2523891a06b69990e8afa009d3 Mon Sep 17 00:00:00 2001 From: yuche Date: Sun, 9 Jun 2024 11:59:22 +0800 Subject: [PATCH] chore: add build/lint/test CI --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8473436 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build, Lint and Test + +on: [pull_request, push] + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.5.0 + with: + node-version: '20' + - uses: pnpm/action-setup@v2.2.4 + with: + version: 8 + - name: Install dependency + run: pnpm install + - name: Lint + run: pnpm lint + - name: Build + run: pnpm build + - name: Test + run: pnpm test