diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..74bcb9a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: Flutter CI + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: Install dependencies + run: flutter pub get + + - name: Run Analyze + run: flutter analyze --no-fatal-infos + + - name: Check format + run: dart format --set-exit-if-changed ./lib + + - name: Run tests + run: flutter test --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 566c678..36a93b6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # ASP - Atomic State Pattern +[![Pub Version](https://img.shields.io/pub/v/asp.svg)](https://pub.dev/packages/asp) +![CI](https://github.com/Flutterando/asp/workflows/CI/badge.svg) +![LICENSE](https://img.shields.io/hexpm/l/modular) +[![GitHub stars](https://badgen.net/github/stars/Flutterando/asp)](https://GitHub.com/Flutterando/asp/stargazers/) + + ![image](/assets/logo.png) ASP (Atomic State Pattern) offers a simplified, predictable, and powerful state management solution for Flutter.