Skip to content

Commit

Permalink
Update cronet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Dec 5, 2023
1 parent 6ebd659 commit d488bc6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/cronet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ jobs:
strategy:
matrix:
package: ['cronet_http', 'cronet_http_embedded']
defaults:
run:
working-directory: 'pkgs/${{ matrix.package }}'
steps:
- uses: actions/checkout@v4
- name: Make cronet_http_embedded copy
if: ${{ matrix.package == 'cronet_http_embedded' }}
run: |
cd ..
cp -r cronet_http cronet_http_embedded
cd cronet_http_embedded
cp -r pkgs/cronet_http pkgs/cronet_http_embedded
cd pkgs/cronet_http_embedded
dart tool/prepare_for_embedded.dart
- uses: subosito/flutter-action@v2
with:
Expand All @@ -46,11 +42,14 @@ jobs:
channel: 'master'
- id: install
name: Install dependencies
working-directory: 'pkgs/${{ matrix.package }}'
run: flutter pub get
- name: Check formatting
working-directory: 'pkgs/${{ matrix.package }}'
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
working-directory: 'pkgs/${{ matrix.package }}'
run: flutter analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

Expand All @@ -62,9 +61,6 @@ jobs:
strategy:
matrix:
package: ['cronet_http', 'cronet_http_embedded']
defaults:
run:
working-directory: 'pkgs/${{ matrix.package }}'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand All @@ -77,11 +73,11 @@ jobs:
- name: Make cronet_http_embedded copy
if: ${{ matrix.package == 'cronet_http_embedded' }}
run: |
cd ..
cp -r cronet_http cronet_http_embedded
cd cronet_http_embedded
cp -r pkgs/cronet_http pkgs/cronet_http_embedded
cd pkgs/cronet_http_embedded
dart tool/prepare_for_embedded.dart
- name: Run tests
working-directory: 'pkgs/${{ matrix.package }}'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
Expand Down

0 comments on commit d488bc6

Please sign in to comment.