diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c062040 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +env: + FLUTTER_VERSION: 3.24.3 + +jobs: + analyze-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + - uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: true + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + - run: melos run format-check diff --git a/melos.yaml b/melos.yaml index 5414a13..41bbcf2 100644 --- a/melos.yaml +++ b/melos.yaml @@ -2,3 +2,6 @@ name: sane_workspace packages: - packages/** + +scripts: + format-check: melos exec dart format . --set-exit-if-changed