From 880c8c7d89c1053c0f5d75d0a0f1d151e7d52e48 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Tue, 25 Apr 2023 18:50:16 +0800 Subject: [PATCH] ci: add ci --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7e1eaf3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Build Test + +on: + push: + pull_request: + branches: + - main +jobs: + test: + name: Test build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + run_install: true + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: pnpm + + - name: Build test + run: | + pnpm build