diff --git a/.github/workflows/cronet.yml b/.github/workflows/cronet.yml index 9b2a4cfcf6..440cd93ed4 100644 --- a/.github/workflows/cronet.yml +++ b/.github/workflows/cronet.yml @@ -21,6 +21,11 @@ env: PUB_ENVIRONMENT: bot.github jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + use-flutter: true + sdk: stable verify: name: Format & Analyze & Test runs-on: ubuntu-latest @@ -29,9 +34,6 @@ jobs: fail-fast: false matrix: cronetHttpNoPlay: ['false', 'true'] - defaults: - run: - working-directory: pkgs/cronet_http steps: - name: Delete unnecessary tools 🔧 uses: jlumbroso/free-disk-space@v1.3.1 @@ -66,3 +68,7 @@ jobs: arch: x86_64 target: ${{ matrix.cronetHttpNoPlay == 'true' && 'default' || 'google_apis' }} script: cd pkgs/cronet_http/example && flutter test --dart-define=cronetHttpNoPlay=${{ matrix.cronetHttpNoPlay }} --timeout=1200s integration_test/ + +defaults: + run: + working-directory: pkgs/cronet_http diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 68213aa069..8df6e1af58 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -21,12 +21,14 @@ env: PUB_ENVIRONMENT: bot.github jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + use-flutter: true + sdk: stable verify: name: Format & Analyze & Test runs-on: macos-latest - defaults: - run: - working-directory: pkgs/cupertino_http strategy: fail-fast: false matrix: @@ -57,3 +59,7 @@ jobs: cd example flutter pub get flutter test integration_test/main.dart --test-randomize-ordering-seed=random + +defaults: + run: + working-directory: pkgs/cupertino_http diff --git a/.github/workflows/dart_health.yaml b/.github/workflows/dart_health.yaml new file mode 100644 index 0000000000..fc589f7c2e --- /dev/null +++ b/.github/workflows/dart_health.yaml @@ -0,0 +1,34 @@ +name: Dart Packages Health +on: + push: + branches: + - main + - master + paths: + - '.github/workflows/dart_health.yaml' + - 'pkgs/http/**' + - 'pkgs/http_client_conformance_tests/**' + - 'pkgs/http_parser/**' + - 'pkgs/http_profile/**' + - 'pkgs/http2/**' + - 'pkgs/web_socket/**' + - 'pkgs/web_socket_conformance_tests/**' + pull_request: + paths: + - '.github/workflows/dart_health.yaml' + - 'pkgs/http/**' + - 'pkgs/http_client_conformance_tests/**' + - 'pkgs/http_parser/**' + - 'pkgs/http_profile/**' + - 'pkgs/http2/**' + - 'pkgs/web_socket/**' + - 'pkgs/web_socket_conformance_tests/**' + +jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + sdk: stable + ignore_packages: 'pkgs/cronet_http,pkgs/cupertino_http,pkgs/flutter_http_example,pkgs/java_http,pkgs/ok_http' + permissions: + pull-requests: write diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml deleted file mode 100644 index 1c904405a2..0000000000 --- a/.github/workflows/health.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: Health -on: - pull_request: - branches: [ master ] - types: [opened, synchronize, reopened, labeled, unlabeled] - -jobs: - health: - uses: dart-lang/ecosystem/.github/workflows/health.yaml@main - with: - ignore_license: "**.g.dart" - sdk: dev - permissions: - pull-requests: write diff --git a/.github/workflows/okhttp.yaml b/.github/workflows/okhttp.yaml index 367bcf2732..45734aca26 100644 --- a/.github/workflows/okhttp.yaml +++ b/.github/workflows/okhttp.yaml @@ -21,12 +21,14 @@ env: PUB_ENVIRONMENT: bot.github jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + use-flutter: true + sdk: stable verify: name: Format & Analyze & Test runs-on: ubuntu-latest - defaults: - run: - working-directory: pkgs/ok_http steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 @@ -56,3 +58,7 @@ jobs: api-level: 21 arch: x86_64 script: cd pkgs/ok_http/example && flutter test --timeout=1200s integration_test/ + +defaults: + run: + working-directory: pkgs/ok_http