From 324b3c9f8a9ad597f9c55e52aaceeb73674d9b60 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sat, 13 Jun 2026 10:39:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20container=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=92=8C=20paths=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=99=A8=EF=BC=8C=E6=81=A2=E5=A4=8D=20setup-go/setup-node=20?= =?UTF-8?q?=E4=BB=A5=E5=85=BC=E5=AE=B9=20Gitea=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/backend-ci.yml | 11 ++++++----- .gitea/workflows/frontend-ci.yml | 13 ++++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/backend-ci.yml b/.gitea/workflows/backend-ci.yml index 4b34473..981b4f6 100644 --- a/.gitea/workflows/backend-ci.yml +++ b/.gitea/workflows/backend-ci.yml @@ -3,25 +3,26 @@ name: Backend CI on: push: branches: [main] - paths: [backend/**] pull_request: branches: [main] - paths: [backend/**] jobs: ci: runs-on: aliyun - container: golang:1.23-bookworm - env: - GOPROXY: https://goproxy.cn,direct defaults: run: working-directory: backend steps: - uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.23" + - name: Download dependencies run: go mod download + env: + GOPROXY: https://goproxy.cn,direct - name: Vet run: go vet ./... diff --git a/.gitea/workflows/frontend-ci.yml b/.gitea/workflows/frontend-ci.yml index db490f1..6daff48 100644 --- a/.gitea/workflows/frontend-ci.yml +++ b/.gitea/workflows/frontend-ci.yml @@ -3,23 +3,26 @@ name: Frontend CI on: push: branches: [main] - paths: [frontend/**] pull_request: branches: [main] - paths: [frontend/**] jobs: ci: runs-on: aliyun - container: node:22-bookworm - env: - npm_config_registry: https://registry.npmmirror.com defaults: run: working-directory: frontend steps: - uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: frontend/package-lock.json + env: + npm_config_registry: https://registry.npmmirror.com + - name: Install dependencies run: npm ci From 8c9a9d6020282aa2957e6e0fc317a1493a6d3cc7 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sat, 13 Jun 2026 10:42:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20health=20test=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=94=A8=E4=BA=8E=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=20Gitea=20Actions=20=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/health-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/health-test.yml diff --git a/.gitea/workflows/health-test.yml b/.gitea/workflows/health-test.yml new file mode 100644 index 0000000..06b7d3b --- /dev/null +++ b/.gitea/workflows/health-test.yml @@ -0,0 +1,18 @@ +name: Health Test +run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀 + +on: [push] + +jobs: + health: + runs-on: aliyun + steps: + - run: echo "🎉 Triggered by ${{ gitea.event_name }} event" + - run: echo "🌿 Branch: ${{ gitea.ref }}, Repo: ${{ gitea.repository }}" + - run: echo "🐧 Running on ${{ runner.os }}, workspace: ${{ gitea.workspace }}" + - name: Check out repository code + uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4 + - run: echo "💡 ${{ gitea.repository }} has been cloned to the runner" + - name: List files in the repository + run: ls ${{ gitea.workspace }} + - run: echo "🍏 Job status: ${{ job.status }}"