Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Flutter CI

on:
push:
branches: [main]
paths:
- 'flutter_module/**'
- 'flutter_sharp/**'
- '.github/workflows/flutter-ci.yml'
pull_request:
branches: [main]
paths:
- 'flutter_module/**'
- 'flutter_sharp/**'
- '.github/workflows/flutter-ci.yml'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Get dependencies
working-directory: flutter_module
run: flutter pub get

- name: Analyze
working-directory: flutter_module
run: flutter analyze

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Get dependencies
working-directory: flutter_module
run: flutter pub get

- name: Run tests
working-directory: flutter_module
run: flutter test

format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Check formatting
run: dart format --output=none --set-exit-if-changed flutter_module/lib/
Loading