Skip to content

Commit

Permalink
Merge pull request #294 from AmosHuKe/ci-code-formatting
Browse files Browse the repository at this point in the history
 CI: Action - Check Dart code formatting
  • Loading branch information
CaiJingLong authored Apr 3, 2024
2 parents aedcda5 + 2a26ff8 commit 2aa67cb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
Expand All @@ -36,6 +36,8 @@ jobs:
run: |
melos bootstrap
melos run get
- name: Check Dart code formatting
run: melos exec -- "dart format . -o none --set-exit-if-changed"
- name: Analyze
run: melos run analyze
test_iOS:
Expand All @@ -46,8 +48,8 @@ jobs:
matrix:
os: [ macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
Expand Down Expand Up @@ -75,8 +77,8 @@ jobs:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
Expand All @@ -102,8 +104,8 @@ jobs:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class FlutterImageCompressMacos extends FlutterImageCompressPlatform {
bool keepExif = false,
}) async {
await checkSupport(format);

final result = await _channel.invokeMethod<Uint8List>('compressWithList', {
'list': image,
'minWidth': minWidth,
Expand Down

0 comments on commit 2aa67cb

Please sign in to comment.