Merge pull request #20 from koji-1009/chore/ci
chore: Update github actions
This commit is contained in:
commit
a301deee8a
|
|
@ -0,0 +1 @@
|
|||
- @koji-1009
|
||||
|
|
@ -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 .
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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', () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue