From d58eeede2fa07957af5ae80c1b0092177df927fa Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 27 Jan 2026 15:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20CI=EF=BC=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=20analyze/test=EF=BC=88=E5=90=AB=20example=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1112d14 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: Flutter CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + analyze-and-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: Flutter Version + run: flutter --version + + - name: Pub Get (root) + run: flutter pub get + + - name: Analyze (root) + run: flutter analyze + + - name: Test (root) + run: flutter test --coverage + + - name: Pub Get (example) + run: flutter pub get + working-directory: example + + - name: Analyze (example) + run: flutter analyze + working-directory: example + + - name: Test (example) + run: flutter test + working-directory: example +