From 0e36e27d424e370332cd7106bf586b4218458de6 Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Fri, 3 Apr 2026 20:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0gitea=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dart-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/dart-ci.yml diff --git a/.gitea/workflows/dart-ci.yml b/.gitea/workflows/dart-ci.yml new file mode 100644 index 0000000..eb8b72a --- /dev/null +++ b/.gitea/workflows/dart-ci.yml @@ -0,0 +1,35 @@ +name: Dart CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Dart SDK + uses: dart-lang/setup-dart@v1 + with: + sdk: '3.10.0-290.4.beta' # 可选: stable, beta, dev 或具体版本如 3.3.0 + + - name: Install dependencies + run: dart pub get + + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Analyze project source + run: dart analyze + + - name: Run tests + run: dart test + + - name: Build executable + run: dart compile exe bin/server.dart -o build/loongyan \ No newline at end of file