From aaeb0fb39ac63a44bcb38c4747491c000249eabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kowali=C5=84ski?= Date: Thu, 25 Jul 2024 23:18:24 +0200 Subject: [PATCH] ci: add gh workflow --- .github/workflows/lint_and_format.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/lint_and_format.yml diff --git a/.github/workflows/lint_and_format.yml b/.github/workflows/lint_and_format.yml new file mode 100644 index 00000000..c1fe1a56 --- /dev/null +++ b/.github/workflows/lint_and_format.yml @@ -0,0 +1,31 @@ +name: Lint & formatting + +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + flutter-version: "3.22.3" + channel: "stable" + - run: flutter --version + + - name: Install dependencies + run: dart pub get + + - name: generate files + run: dart run build_runner build -delete-conflicting-outputs + + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Analyze project source + run: flutter analyze --fatal-infos --no-pub