test(add test for utils):

This commit is contained in:
ZhuJHua
2025-02-08 23:56:26 +08:00
parent 6ce64f8b46
commit 1c374b7a84
5 changed files with 177 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
name: Flutter Analyze
name: Flutter CI
on:
workflow_dispatch:
@@ -50,5 +50,29 @@ jobs:
run: flutter analyze
- name: Fail on Errors
if: failure()
run: exit 1
test:
name: Run Flutter Tests
runs-on: ubuntu-latest
needs: analyze
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- name: Install Dependencies
run: flutter pub get
- name: Run Flutter Tests
run: flutter test
- name: Fail on Test Errors
if: failure()
run: exit 1