diff --git a/.cirrus.yml b/.cirrus.yml index 1af58f449..48de37a78 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,18 +1,16 @@ test_linux_task: name: Test `patrol develop` on Linux - required_pr_labels: - - 'package: patrol_cli' - - 'package: patrol' - - 'cirrusci' + required_pr_labels: + - "package: patrol_cli" container: image: ghcr.io/cirruslabs/flutter:stable cpu: 6 memory: 10G - kvm: 'true' + kvm: "true" env: PATH: $HOME/.pub-cache/bin:$HOME/fvm/default/bin:$CIRRUS_WORKING_DIR/fvm:${PATH} - FLUTTER_VERSION: '3.22.0' - EMULATOR_API_LEVEL: '34' + FLUTTER_VERSION: "3.22.0" + EMULATOR_API_LEVEL: "34" EMULATOR_ABI: google_apis_playstore;x86_64 EMULATOR_IMAGE: system-images;android-${EMULATOR_API_LEVEL};${EMULATOR_ABI} timeout_in: 30m @@ -62,15 +60,13 @@ test_linux_task: test_macos_task: name: Test `patrol develop` on macOS - required_pr_labels: - - 'package: patrol_cli' - - 'package: patrol' - - 'cirrusci' + required_pr_labels: + - "package: patrol_cli" macos_instance: image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest env: PATH: $HOME/.pub-cache/bin:$HOME/fvm/default/bin:${PATH} - FLUTTER_VERSION: '3.22.0' + FLUTTER_VERSION: "3.22.0" timeout_in: 30m set_up_fvm_script: | diff --git a/.github/workflows/test-android-emulator-webview.yaml b/.github/workflows/test-android-emulator-webview.yaml index 5d984830d..f0caf5cc5 100644 --- a/.github/workflows/test-android-emulator-webview.yaml +++ b/.github/workflows/test-android-emulator-webview.yaml @@ -3,7 +3,12 @@ name: test android emulator webview on: workflow_dispatch: schedule: - - cron: '0 23 * * *' + - cron: "0 23 * * *" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: run_tests: @@ -18,8 +23,8 @@ jobs: strategy: fail-fast: false matrix: - flutter-version: ['3.22.x'] - flutter-channel: ['stable'] + flutter-version: ["3.22.x"] + flutter-channel: ["stable"] defaults: run: diff --git a/.github/workflows/test-android-emulator.yaml b/.github/workflows/test-android-emulator.yaml index ae103468e..dcc45e9bb 100644 --- a/.github/workflows/test-android-emulator.yaml +++ b/.github/workflows/test-android-emulator.yaml @@ -3,7 +3,12 @@ name: test android emulator on: workflow_dispatch: schedule: - - cron: '0 */12 * * *' + - cron: "0 */12 * * *" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: run_tests: @@ -19,8 +24,8 @@ jobs: strategy: fail-fast: false matrix: - flutter-version: ['3.22.x'] - flutter-channel: ['stable'] + flutter-version: ["3.22.x"] + flutter-channel: ["stable"] defaults: run: diff --git a/.github/workflows/test-ios-simulator-webview.yaml b/.github/workflows/test-ios-simulator-webview.yaml index a77e112d8..397c86029 100644 --- a/.github/workflows/test-ios-simulator-webview.yaml +++ b/.github/workflows/test-ios-simulator-webview.yaml @@ -3,7 +3,12 @@ name: test ios simulator webview on: workflow_dispatch: schedule: - - cron: '0 23 * * *' + - cron: "0 23 * * *" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: run_tests: @@ -19,11 +24,11 @@ jobs: strategy: fail-fast: false matrix: - flutter-version: ['3.22.x'] - flutter-channel: ['stable'] + flutter-version: ["3.22.x"] + flutter-channel: ["stable"] device_model: [iPhone 14] os: [iOS] - os_version: ['17.2'] + os_version: ["17.2"] defaults: run: diff --git a/.github/workflows/test-ios-simulator.yaml b/.github/workflows/test-ios-simulator.yaml index 4d74e7b6d..58b90a662 100644 --- a/.github/workflows/test-ios-simulator.yaml +++ b/.github/workflows/test-ios-simulator.yaml @@ -3,7 +3,12 @@ name: test ios simulator on: workflow_dispatch: schedule: - - cron: '0 */12 * * *' + - cron: "0 */12 * * *" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: run_tests: @@ -20,11 +25,12 @@ jobs: strategy: fail-fast: false matrix: - flutter-version: ['3.22.x'] - flutter-channel: ['stable'] - device_model: [iPhone SE (3rd generation), iPhone 14, iPad (10th generation)] + flutter-version: ["3.22.x"] + flutter-channel: ["stable"] + device_model: + [iPhone SE (3rd generation), iPhone 14, iPad (10th generation)] os: [iOS] - os_version: ['17.2'] + os_version: ["17.2"] defaults: run: