From 0fb10be265f98569e9877fca12215d28deb7088c Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 15 Dec 2025 06:48:16 +0900 Subject: [PATCH 1/5] chore: Add CODEOWNERS --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..3f18b8e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +- @koji-1009 From 48b61fe1a8fcde754f939479c18ef1b20797337b Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 15 Dec 2025 07:05:41 +0900 Subject: [PATCH 2/5] chore: Update github actions --- .github/workflows/pull_request.yaml | 19 +++++++++++++++++++ .github/workflows/test.yaml | 10 +++------- pubspec.yaml | 3 +-- test/output_resize_test.dart | 2 +- 4 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/pull_request.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..d9443b0 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,19 @@ +name: Pull Request Checks + +on: + pull_request: + +jobs: + lint: + runs-on: ubuntu-slim + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0 + with: + channel: stable + cache: true + - uses: invertase/github-action-dart-analyzer@e981b01a458d0bab71ee5da182e5b26687b7101b # v3.0.0 + - run: dart format --output=none --set-exit-if-changed . diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index dcbf24a..973ba1a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,15 +8,11 @@ on: jobs: unit_tests: - runs-on: ubuntu-latest + runs-on: ubuntu-slim timeout-minutes: 10 permissions: contents: read steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - - uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0 - with: - channel: stable - cache: true - - name: Run Flutter Unit Tests - run: flutter test + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1.7.1 + - run: dart test diff --git a/pubspec.yaml b/pubspec.yaml index bae2b1c..342aa49 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -23,8 +23,7 @@ dependencies: web: ^1.0.0 dev_dependencies: - flutter_test: - sdk: flutter + test: ^1.28.0 flutter_lints: ^6.0.0 jnigen: ^0.15.0 ffigen: ^20.1.1 diff --git a/test/output_resize_test.dart b/test/output_resize_test.dart index c46431e..ab2f108 100644 --- a/test/output_resize_test.dart +++ b/test/output_resize_test.dart @@ -1,5 +1,5 @@ -import 'package:flutter_test/flutter_test.dart'; import 'package:platform_image_converter/src/output_resize.dart'; +import 'package:test/test.dart'; void main() { group('ResizeMode', () { From 09013301544ba7a3f86a1511564d6cdad5ca84fc Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 15 Dec 2025 07:08:48 +0900 Subject: [PATCH 3/5] chore: Fix command --- .github/workflows/test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 973ba1a..81f9642 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,4 +15,6 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1.7.1 - - run: dart test + - run: | + dart pub get + dart test From 9fa5d5b85a71fbd1afba5b8e0961ac5049d91e86 Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 15 Dec 2025 07:13:49 +0900 Subject: [PATCH 4/5] chore: fix --- .github/workflows/pull_request.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index d9443b0..8ac62fa 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -16,4 +16,6 @@ jobs: channel: stable cache: true - uses: invertase/github-action-dart-analyzer@e981b01a458d0bab71ee5da182e5b26687b7101b # v3.0.0 + with: + fatal-warnings: false - run: dart format --output=none --set-exit-if-changed . From f51b75e41404d466e0f07983b078ea60323a5153 Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 15 Dec 2025 07:17:43 +0900 Subject: [PATCH 5/5] chore: fix --- .github/workflows/pull_request.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 8ac62fa..baba34a 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -15,7 +15,5 @@ jobs: with: channel: stable cache: true - - uses: invertase/github-action-dart-analyzer@e981b01a458d0bab71ee5da182e5b26687b7101b # v3.0.0 - with: - fatal-warnings: false + - run: flutter analyze - run: dart format --output=none --set-exit-if-changed .