Skip to content

Commit

Permalink
chore: run integ tests against flutter beta (#4030)
Browse files Browse the repository at this point in the history
* chore: run integ tests on beta

* chore: pass channel to install dependencies

* chore: update input to use correct param

* chore: update all platforms

* chore: skip tests for beta on PRs

* chore: run auth tests against beta only

* chore: fix env vars

* chore fix env usage

* chore: run auth tests against stable

* chore: test removing IS_AUTH_PACKAGE

* chore: remove env vars for ios tests

* chore: remove changes to non ios platforms

* chore: fix package names

* chore: update remaining platforms

* chore: only run auth tests against beta
  • Loading branch information
Jordan-Nelson authored and Nika Hassani committed Dec 5, 2023
1 parent ebc906d commit e5c10ea
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
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

0 comments on commit e5c10ea

Please sign in to comment.