Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run integ tests against flutter beta #4030

Merged
merged 15 commits into from
Nov 3, 2023
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
10 changes: 10 additions & 0 deletions .github/workflows/e2e_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
api-level:
- 24
- 33
channel:
- beta
- stable
# Skips e2e tests against beta on PRs, except for auth
# Todo(Jordan-Nelson): Update tests to skip beta for auth once flutter 3.16.0 becomes stable.
exclude:
- channel: ${{ (github.event_name == 'pull_request' && inputs.package-name != 'amplify_auth_cognito_example' && 'beta') || 'NONE' }}

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
with:
Expand All @@ -43,6 +51,8 @@ jobs:

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}

- name: Pub Upgrade
run: aft exec --include=${{ inputs.package-name }} -- flutter pub upgrade
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ on:
jobs:
e2e-test-ios:
runs-on: macos-latest-xl
strategy:
# Allows other matrix items to run if one fails
fail-fast: false
matrix:
channel:
- beta
- stable
# Skips e2e tests against beta on PRs, except for auth
# Todo(Jordan-Nelson): Update tests to skip beta for auth once flutter 3.16.0 becomes stable.
exclude:
- channel: ${{ (github.event_name == 'pull_request' && inputs.package-name != 'amplify_auth_cognito_example' && 'beta') || 'NONE' }}

# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
Expand All @@ -30,6 +42,8 @@ jobs:

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}

- name: Launch iOS simulator
uses: ./.github/composite_actions/launch_ios_simulator
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
e2e-test-linux:
runs-on:
labels: amplify-flutter_ubuntu-latest_4-core
strategy:
# Allows other matrix items to run if one fails
fail-fast: false
matrix:
channel:
- beta
- stable
# Skips e2e tests against beta on PRs, except for auth
# Todo(Jordan-Nelson): Update tests to skip beta for auth once flutter 3.16.0 becomes stable.
exclude:
- channel: ${{ (github.event_name == 'pull_request' && inputs.package-name != 'amplify_auth_cognito_example' && 'beta') || 'NONE' }}

# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
Expand All @@ -31,6 +43,8 @@ jobs:

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}

- name: Pub Upgrade
run: aft exec --include=${{ inputs.package-name }} -- flutter pub upgrade
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
e2e-test-web:
runs-on:
labels: amplify-flutter_ubuntu-latest_4-core
strategy:
# Allows other matrix items to run if one fails
fail-fast: false
matrix:
channel:
- beta
- stable
# Skips e2e tests against beta on PRs, except for auth
# Todo(Jordan-Nelson): Update tests to skip beta for auth once flutter 3.16.0 becomes stable.
exclude:
- channel: ${{ (github.event_name == 'pull_request' && inputs.package-name != 'amplify_auth_cognito_example' && 'beta') || 'NONE' }}

# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
Expand All @@ -31,6 +43,8 @@ jobs:

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}

- name: Pub Upgrade
run: aft exec --include=${{ inputs.package-name }} -- flutter pub upgrade
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/e2e_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
e2e-test-windows:
runs-on:
labels: amplify-flutter_windows-latest_8-core
strategy:
# Allows other matrix items to run if one fails
fail-fast: false
matrix:
channel:
- beta
- stable
# Skips e2e tests against beta on PRs, except for auth
# Todo(Jordan-Nelson): Update tests to skip beta for auth once flutter 3.16.0 becomes stable.
exclude:
- channel: ${{ (github.event_name == 'pull_request' && inputs.package-name != 'amplify_auth_cognito_example' && 'beta') || 'NONE' }}

# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
Expand All @@ -34,6 +46,8 @@ jobs:

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}

- name: Pub Upgrade
run: dart pub global run aft exec --include=${{ inputs.package-name }} -- flutter pub upgrade
Expand Down
Loading