chore(actions): android emulator to start with clear cache and data #437
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: actions | |
on: | |
push: | |
branches: | |
- main | |
- stable | |
- next | |
paths: | |
- "actions/**/*.dart" | |
- "actions/**/*.yaml" | |
- "actions/**/*.json" | |
pull_request: | |
paths: | |
- "actions/**/*.dart" | |
- "actions/**/*.yaml" | |
- "actions/**/*.json" | |
schedule: | |
- cron: "0 0 * * 0" # Every Sunday at 00:00 | |
defaults: | |
run: | |
shell: bash | |
permissions: read-all | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main | |
with: | |
sdk: 3.3.0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # 4.0.0 | |
with: | |
version: 9 | |
- name: Setup aft | |
shell: bash # Run in bash regardless of platform | |
run: dart pub global activate -spath packages/aft | |
- name: aft link | |
run: aft link | |
- name: Get Packages | |
working-directory: actions | |
run: dart pub get | |
- name: Build Actions | |
working-directory: actions | |
run: dart tool/build.dart | |
test_runner: | |
name: Test Runner | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main | |
with: | |
sdk: 3.3.0 | |
- name: Setup aft | |
shell: bash # Run in bash regardless of platform | |
run: dart pub global activate -spath packages/aft | |
- name: aft link | |
run: aft link | |
- name: Get Packages | |
working-directory: actions | |
run: dart pub get | |
- name: Test | |
working-directory: actions | |
run: dart --enable-experiment=inline-class test -p node | |
test_setup_chromedriver: | |
name: Test Action (setup_chromedriver) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
# TODO(equartey): Change to `macos-latest` after github migrates their runners - https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/ | |
- macos-14 | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 | |
- name: Test | |
uses: ./.github/composite_actions/setup_chromedriver | |
test_launch_ios_simulator: | |
name: Test Action (launch_ios_simulator) | |
# It is recommended that all actions requiring a simulator be run on XL runners | |
# since the process of installing new runtimes and building with Xcode can be | |
# incredibly slow otherwise. | |
# TODO(equartey): Change to `macos-latest` after github migrates their runners - https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/ | |
runs-on: macos-14-xlarge | |
# Timeout as a stop-gap for further investigating. This action should never need more | |
# than 20 minutes to do its work. | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
ios-version: | |
- "15.0" | |
- "17.5" | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0 | |
- name: Launch Simulator (iOS ${{ matrix.ios-version }}) | |
uses: ./.github/composite_actions/launch_ios_simulator | |
with: | |
ios-version: ${{ matrix.ios-version }} | |
test_launch_android_emulator: | |
name: Test Action (launch_android_emulator) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0 | |
with: | |
distribution: "corretto" # Amazon Corretto Build of OpenJDK | |
java-version: "17" | |
- name: Test | |
timeout-minutes: 10 | |
uses: ./.github/composite_actions/launch_android_emulator | |
with: | |
script: echo "Success!" |