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