Merge pull request #20 from koji-1009/chore/ci

chore: Update github actions
This commit is contained in:
Koji Wakamiya 2025-12-15 08:13:44 +09:00 committed by GitHub
commit a301deee8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 27 additions and 10 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1 @@
- @koji-1009

19
.github/workflows/pull_request.yaml vendored Normal file
View File

@ -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
- run: flutter analyze
- run: dart format --output=none --set-exit-if-changed .

View File

@ -8,15 +8,13 @@ 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 pub get
dart test

View File

@ -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

View File

@ -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', () {