chore: Update github actions
This commit is contained in:
parent
0fb10be265
commit
48b61fe1a8
|
|
@ -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 .
|
||||||
|
|
@ -8,15 +8,11 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit_tests:
|
unit_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-slim
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
|
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1.7.1
|
||||||
with:
|
- run: dart test
|
||||||
channel: stable
|
|
||||||
cache: true
|
|
||||||
- name: Run Flutter Unit Tests
|
|
||||||
run: flutter test
|
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,7 @@ dependencies:
|
||||||
web: ^1.0.0
|
web: ^1.0.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
test: ^1.28.0
|
||||||
sdk: flutter
|
|
||||||
flutter_lints: ^6.0.0
|
flutter_lints: ^6.0.0
|
||||||
jnigen: ^0.15.0
|
jnigen: ^0.15.0
|
||||||
ffigen: ^20.1.1
|
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:platform_image_converter/src/output_resize.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('ResizeMode', () {
|
group('ResizeMode', () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue