From 9e813f0a08ba0bb83fb8c64521d41b24c1e42b31 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 15:01:46 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=90=88=E5=B9=B6=20workflow=EF=BC=8C?= =?UTF-8?q?=E4=BB=85=E4=BF=9D=E7=95=99=20push=20main=20=E6=97=B6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/backend-ci.yml | 38 -------------------------------- .gitea/workflows/deploy.yml | 22 ------------------ .gitea/workflows/frontend-ci.yml | 27 ----------------------- 3 files changed, 87 deletions(-) delete mode 100644 .gitea/workflows/backend-ci.yml delete mode 100644 .gitea/workflows/frontend-ci.yml diff --git a/.gitea/workflows/backend-ci.yml b/.gitea/workflows/backend-ci.yml deleted file mode 100644 index 50848e4..0000000 --- a/.gitea/workflows/backend-ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Backend CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - ci: - runs-on: aliyun - container: golang:1.26.2-alpine - defaults: - run: - working-directory: backend - steps: - - name: Setup Node.js - run: | - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories - apk add --no-cache nodejs - working-directory: / - - - name: Checkout - uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" - - - name: Download Dependencies - run: go mod download - env: - GOPROXY: https://goproxy.cn,direct - - - name: Vet - run: go vet ./... - - - name: Build - run: go build ./cmd/server - - - name: Test - run: go test ./... diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 29881e6..5878cf3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -3,31 +3,9 @@ name: Deploy on: push: branches: [main] - pull_request: - branches: [main] jobs: - # ---- PR 时:验证 Docker 镜像可构建 ---- - verify: - if: github.event_name == 'pull_request' - runs-on: aliyun - steps: - - name: Checkout - uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" - - - name: Verify Frontend Build - run: docker build -t camtalk-frontend-test ./frontend - - - name: Verify Backend Build - run: docker build -t camtalk-backend-test ./backend - - - name: Cleanup - run: | - docker rmi camtalk-frontend-test camtalk-backend-test || true - - # ---- push main 时:构建并部署 ---- deploy: - if: github.event_name == 'push' runs-on: aliyun steps: - name: Checkout diff --git a/.gitea/workflows/frontend-ci.yml b/.gitea/workflows/frontend-ci.yml deleted file mode 100644 index 9c035f5..0000000 --- a/.gitea/workflows/frontend-ci.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Frontend CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - ci: - runs-on: aliyun - container: node:22-alpine - defaults: - run: - working-directory: frontend - steps: - - name: Checkout - uses: "http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4" - - - name: Install Dependencies - run: npm ci - - - name: Lint - run: npm run lint - - - name: Type Check & Build - run: npm run build -- 2.49.1