From adde23d1da2ce27a03aad29aeec5a2cd6a5e26a2 Mon Sep 17 00:00:00 2001 From: Paul Kepinski Date: Mon, 4 Nov 2024 02:03:58 +0100 Subject: [PATCH 1/2] Fix initial CI errors --- .github/ci.yml | 5 +---- packages/sane/lib/src/sane_isolate.dart | 3 ++- packages/sane/pubspec.yaml | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/ci.yml b/.github/ci.yml index c062040..1fc7304 100644 --- a/.github/ci.yml +++ b/.github/ci.yml @@ -9,11 +9,8 @@ on: - main workflow_dispatch: -env: - FLUTTER_VERSION: 3.24.3 - jobs: - analyze-latest: + analyze: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/packages/sane/lib/src/sane_isolate.dart b/packages/sane/lib/src/sane_isolate.dart index 7521ff5..73721d2 100644 --- a/packages/sane/lib/src/sane_isolate.dart +++ b/packages/sane/lib/src/sane_isolate.dart @@ -321,7 +321,8 @@ class MessageHandler { final Sane _sane; - Future handleMessage(IsolateMessage message, + Future handleMessage( + IsolateMessage message, ) async { switch (message) { case InitMessage _: diff --git a/packages/sane/pubspec.yaml b/packages/sane/pubspec.yaml index a76c63c..4846fdd 100644 --- a/packages/sane/pubspec.yaml +++ b/packages/sane/pubspec.yaml @@ -11,6 +11,7 @@ environment: dependencies: ffi: ^2.1.3 + meta: ^1.16.0 dev_dependencies: ffigen: ^14.0.1 From ea2ac1ab9b52290f8cdacc8f1b4d4cd526704176 Mon Sep 17 00:00:00 2001 From: Paul Kepinski Date: Mon, 4 Nov 2024 02:09:09 +0100 Subject: [PATCH 2/2] Run CI when modify config file --- .github/ci.yml | 29 ----------------------------- .github/workflows/ci.yml | 7 +++---- 2 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 .github/ci.yml diff --git a/.github/ci.yml b/.github/ci.yml deleted file mode 100644 index 1fc7304..0000000 --- a/.github/ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: - -jobs: - analyze: - 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/.github/workflows/ci.yml b/.github/workflows/ci.yml index c062040..5b1eab0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,16 +4,15 @@ on: push: branches: - main + paths: + - '.github/workflows/ci.yml' pull_request: branches: - main workflow_dispatch: -env: - FLUTTER_VERSION: 3.24.3 - jobs: - analyze-latest: + analyze: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4