From 185a0c2022f6700dd69149d9c9270c18eafc8b31 Mon Sep 17 00:00:00 2001 From: Soulike Date: Tue, 14 Jan 2025 09:13:56 +0800 Subject: [PATCH] Add CI Workflow (#14) --- .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..00ecae9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup PNPM + uses: pnpm/action-setup@v4 + with: + version: latest + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + check-latest: true + cache: 'pnpm' + - name: Install Dependencies + run: pnpm install + - name: Build + run: pnpm build:all