From 32c49c9f36c9d41086fbe44d7006b872ed850505 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Sat, 5 Oct 2024 20:34:56 +0800 Subject: [PATCH] chore: enable macos integration test --- .github/workflows/flutter_ci.yaml | 73 +++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml index d2eeb7078df5b..b1b4ef3279d72 100644 --- a/.github/workflows/flutter_ci.yaml +++ b/.github/workflows/flutter_ci.yaml @@ -410,3 +410,76 @@ jobs: rust_toolchain: ${{ env.RUST_TOOLCHAIN }} cargo_make_version: ${{ env.CARGO_MAKE_VERSION }} rust_target: ${{ matrix.target }} + + # macOS integration tests + macos_integration_test_1: + needs: [prepare-macos] + if: github.event.pull_request.draft != true + strategy: + fail-fast: false + matrix: + os: [macos-latest] + include: + - os: macos-latest + target: "aarch64-apple-darwin" + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Flutter Integration Test 1 + uses: ./.github/actions/flutter_integration_test + with: + test_path: integration_test/desktop_runner_1.dart + flutter_version: ${{ env.FLUTTER_VERSION }} + rust_toolchain: ${{ env.RUST_TOOLCHAIN }} + cargo_make_version: ${{ env.CARGO_MAKE_VERSION }} + rust_target: ${{ matrix.target }} + + macos_integration_test_2: + needs: [prepare-macos] + if: github.event.pull_request.draft != true + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + include: + - os: macos-latest + target: "aarch64-apple-darwin" + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Flutter Integration Test 2 + uses: ./.github/actions/flutter_integration_test + with: + test_path: integration_test/desktop_runner_2.dart + flutter_version: ${{ env.FLUTTER_VERSION }} + rust_toolchain: ${{ env.RUST_TOOLCHAIN }} + cargo_make_version: ${{ env.CARGO_MAKE_VERSION }} + rust_target: ${{ matrix.target }} + + macos_integration_test_3: + needs: [prepare-macos] + if: github.event.pull_request.draft != true + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + include: + - os: ubuntu-latest + target: "x86_64-unknown-linux-gnu" + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Flutter Integration Test 3 + uses: ./.github/actions/flutter_integration_test + with: + test_path: integration_test/desktop_runner_3.dart + flutter_version: ${{ env.FLUTTER_VERSION }} + rust_toolchain: ${{ env.RUST_TOOLCHAIN }} + cargo_make_version: ${{ env.CARGO_MAKE_VERSION }} + rust_target: ${{ matrix.target }}