Skip to content
Merged
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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
format:
name: Format ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package: core
package_path: packages/drift_sync_core
- package: flutter
package_path: packages/drift_sync_flutter
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.38.9
channel: stable
cache: true

- name: Resolve dependencies
working-directory: ${{ matrix.package_path }}
run: flutter pub get

- name: Check formatting
run: dart format --output=none --set-exit-if-changed "${{ matrix.package_path }}"
Loading