Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "mvanbeusekom"
labels:
- "platform: ci"

- package-ecosystem: "gradle"
directory: "/google_api_availability_android/android"
commit-message:
prefix: "[google_api_availability_android]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10
ignore:
- dependency-name: "com.android.tools.build:gradle"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "junit:junit"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "org.mockito:*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "androidx.test:*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "/google_api_availability_android/example/android/app"
commit-message:
prefix: "[google_api_availability_android]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "/google_api_availability/example/android/app"
commit-message:
prefix: "[google_api_availability]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "pub"
directory: "/google_api_availability"
commit-message:
prefix: "[google_api_availability]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10

- package-ecosystem: "pub"
directory: "/google_api_availability/example"
commit-message:
prefix: "[google_api_availability]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10

- package-ecosystem: "pub"
directory: "/google_api_availability_android"
commit-message:
prefix: "[google_api_availability_android]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10

- package-ecosystem: "pub"
directory: "/google_api_availability_android/example"
commit-message:
prefix: "[google_api_availability_android]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10

- package-ecosystem: "pub"
directory: "/google_api_availability_platform_interface"
commit-message:
prefix: "[google_api_availability_platform_interface]"
schedule:
interval: "weekly"
reviewers:
- "mvanbeusekom"
open-pull-requests-limit: 10
60 changes: 0 additions & 60 deletions .github/workflows/google_api_availability.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/google_api_availability_android.yaml

This file was deleted.

100 changes: 100 additions & 0 deletions .github/workflows/google_api_availability_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Google API Availability - Continuous Integration

# Single entry point for CI. Every package is checked by the reusable
# google_api_availability_package.yaml, and only when that package changed.
# Make `ci-result` the only required status check: it reports on every run,
# also when the package jobs are skipped.
#
# Starting it by hand runs every package, for example to check main against a
# new Flutter stable release.
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

# A new push to a pull request cancels the run for the previous one. Every other
# run gets a group of its own and is never cancelled, so every merged commit and
# every manual run gets a result.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

# The called workflow inherits these and can only narrow them. paths-filter
# reads the changed files of a pull request through the API.
permissions:
contents: read
pull-requests: read

jobs:
changes:
runs-on: ubuntu-latest
outputs:
android: ${{ steps.filter.outputs.android }}
platform_interface: ${{ steps.filter.outputs.platform_interface }}
app_facing: ${{ steps.filter.outputs.app_facing }}
steps:
- uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: filter
if: github.event_name != 'workflow_dispatch'
with:
# The packages are not a pub workspace: each one resolves its
# siblings from pub.dev, so a package only needs checking when its
# own sources or the CI configuration changed.
filters: |
shared: &shared
- '.github/workflows/google_api_availability_ci.yaml'
- '.github/workflows/google_api_availability_package.yaml'
platform_interface:
- *shared
- 'google_api_availability_platform_interface/**'
android:
- *shared
- 'google_api_availability_android/**'
app_facing:
- *shared
- 'google_api_availability/**'

platform_interface:
needs: changes
if: github.event_name == 'workflow_dispatch' || needs.changes.outputs.platform_interface == 'true'
uses: ./.github/workflows/google_api_availability_package.yaml
with:
package: google_api_availability_platform_interface
runs-on: ubuntu-latest
unit-tests: true

android:
needs: changes
if: github.event_name == 'workflow_dispatch' || needs.changes.outputs.android == 'true'
uses: ./.github/workflows/google_api_availability_package.yaml
with:
package: google_api_availability_android
runs-on: ubuntu-latest
java: true
unit-tests: true
example-build: flutter build apk --release

# The plugin only supports Android, so the example is only built for Android.
app_facing:
needs: changes
if: github.event_name == 'workflow_dispatch' || needs.changes.outputs.app_facing == 'true'
uses: ./.github/workflows/google_api_availability_package.yaml
with:
package: google_api_availability
runs-on: ubuntu-latest
java: true
unit-tests: true
example-build: flutter build apk --release

ci-result: # ← the only required check
needs: [changes, platform_interface, android, app_facing]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
exit 1
fi
Loading
Loading