Skip to content
Closed
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
13 changes: 13 additions & 0 deletions .github/composite_actions/install_dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ inputs:
runs:
using: "composite"
steps:
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches/modules-2
~/.gradle/caches/metadata-*
~/.gradle/caches/transforms-*
~/.gradle/caches/jars-*
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # 2.21.0
with:
cache: true
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/e2e_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,3 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
script: aft exec --include=${{ inputs.package-name }} -- small=true "<AFT_ROOT>/build-support/integ_test.sh" -d emulator-5554 --retries 1

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: e2e
working-directory: ${{ inputs.working-directory }}

framework: flutter

platform: android
platform-version: android-${{ matrix.api-level }}
34 changes: 15 additions & 19 deletions .github/workflows/flutter_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
workflow_call:
inputs:
# Native code is tested through the example package.
#TMP trigger
example-directory:
description: The example directory, relative to the repo root
required: true
Expand Down Expand Up @@ -31,6 +32,19 @@ jobs:
exclude:
- channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }}
steps:
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches/modules-2
~/.gradle/caches/metadata-*
~/.gradle/caches/transforms-*
~/.gradle/caches/jars-*
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-

- name: Setup Java
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 5.0.0
with:
Expand Down Expand Up @@ -70,22 +84,4 @@ jobs:
- name: Run Android unit tests
if: inputs.has-native-tests
run: ./gradlew :"${{ inputs.package-name }}":testDebugUnitTest --stacktrace
working-directory: ${{ inputs.example-directory }}/android

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
working-directory: ${{ inputs.example-directory }}

framework: flutter
flutter-dart-channel: ${{ matrix.channel }}

platform: android
working-directory: ${{ inputs.example-directory }}/android
19 changes: 1 addition & 18 deletions .github/workflows/flutter_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,4 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
with:
name: golden-failures-${{ matrix.channel }}-${{ matrix.flutter-version }}
path: ${{ inputs.working-directory }}/test/ui/failures/

- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

job-status: ${{ job.status }}
github-token: ${{ secrets.GITHUB_TOKEN }}

test-type: unit
working-directory: ${{ inputs.working-directory }}

framework: flutter
flutter-dart-channel: ${{ matrix.channel }}
flutter-version: ${{ matrix.flutter-version }}
path: ${{ inputs.working-directory }}/test/ui/failures/
Empty file added packages/amplify_core/lib/TMP
Empty file.
Loading