From b1cfd4f04c45c456f92d8be508f706b9b4f5408f Mon Sep 17 00:00:00 2001 From: alboped Date: Sun, 5 Apr 2026 16:45:51 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9Eci=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..b98ecf1 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,39 @@ +# Gitea Actions:需开启 Actions 并注册 act_runner;runs-on 标签需与 Runner 一致 + +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: yarn + + - name: Install + run: yarn install --frozen-lockfile + + - name: Prettier check + run: yarn format:check + + - name: ESLint + run: yarn lint + + - name: Build + run: yarn build