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 cd748b6 commit f36d2f0
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/cronet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ jobs:
analyze:
name: Lint and static analysis
runs-on: ubuntu-latest
strategy:
matrix:
package: ['cronet_http', 'cronet_http_embedded']
defaults:
run:
working-directory: pkgs/cronet_http
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
dart tool/prepare_for_embedded.dart
- uses: subosito/flutter-action@v2
with:
# TODO: Change to 'stable' when a release version of flutter
Expand All @@ -43,10 +53,16 @@ jobs:
if: always() && steps.install.outcome == 'success'

test:
# Test package:cupertino_http use flutter integration tests.
# Test packages use flutter integration tests.
needs: analyze
name: "Build and test"
runs-on: macos-latest
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 @@ -56,11 +72,18 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- 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
dart tool/prepare_for_embedded.dart
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
target: playstore
arch: x86_64
profile: pixel
script: cd ./pkgs/cronet_http/example && flutter test --timeout=1200s integration_test/
script: cd example && flutter test --timeout=1200s integration_test/

0 comments on commit f36d2f0

Please sign in to comment.