Skip to content

Commit

Permalink
ci: add gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-the-shark committed Jul 25, 2024
1 parent 3626442 commit aaeb0fb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint_and_format.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aaeb0fb

Please sign in to comment.