From fb9001a02d87a2864d4c382eb554f6436a4711b6 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Thu, 29 Oct 2026 10:47:36 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20Gitea=20Actions=20?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=EF=BC=88=E6=B5=8B=E8=AF=95/?= =?UTF-8?q?=E5=88=86=E6=9E=90/=E6=9E=84=E5=BB=BA=E9=97=A8=E7=A6=81?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..e210cb7 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,25 @@ +# Author: fruit.com.cn +# ReelShort 客户端 CI:静态分析 + 测试门禁 +name: flutter-ci + +on: + push: + branches: [develop, main] + pull_request: + branches: [develop, main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + - name: 依赖 + run: flutter pub get + - name: 静态分析(零告警门禁) + run: dart analyze --fatal-infos + - name: 单元测试(全绿门禁) + run: flutter test -r expanded