diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..3acb74d --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,26 @@ +name: Validate PR + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + validate: + name: Analyze & Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + + - run: flutter pub get + + - name: Analyze + run: flutter analyze + + - name: Test + run: flutter test