From b01b40432f2b0632777c576d9fe66019ac297276 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 11 Oct 2023 07:59:19 -0700 Subject: [PATCH] TEMP - force a test --- ...plify_analytics_pinpoint_example copy.yaml | 27 +++++++++++ .github/workflows/e2e_web copy.yaml | 47 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 .github/workflows/amplify_analytics_pinpoint_example copy.yaml create mode 100644 .github/workflows/e2e_web copy.yaml diff --git a/.github/workflows/amplify_analytics_pinpoint_example copy.yaml b/.github/workflows/amplify_analytics_pinpoint_example copy.yaml new file mode 100644 index 00000000000..b9da9989834 --- /dev/null +++ b/.github/workflows/amplify_analytics_pinpoint_example copy.yaml @@ -0,0 +1,27 @@ +# Generated with aft. To update, run: `aft generate workflows` +name: amplify_analytics_pinpoint_example +on: push +defaults: + run: + shell: bash + +# These permissions are needed to interact with GitHub's OIDC Token endpoint. +permissions: + id-token: write + contents: read + +# Cancels in-progress job when there is another push to same ref. +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + e2e_web_test: + needs: [test] + uses: ./.github/workflows/e2e_web copy.yaml + secrets: inherit + with: + package-name: amplify_analytics_pinpoint_example + working-directory: packages/analytics/amplify_analytics_pinpoint/example + needs-aws-config: true diff --git a/.github/workflows/e2e_web copy.yaml b/.github/workflows/e2e_web copy.yaml new file mode 100644 index 00000000000..9e4c4cc5da4 --- /dev/null +++ b/.github/workflows/e2e_web copy.yaml @@ -0,0 +1,47 @@ +name: E2E (Web) +on: + workflow_call: + inputs: + working-directory: + description: The working directory relative to the repo root + required: true + type: string + package-name: + description: The name of the package being tested + required: true + type: string + needs-aws-config: + description: Whether the E2E workflow needs configuration pulled from AWS + required: true + type: boolean + +jobs: + e2e-test-web: + runs-on: + labels: amplify-flutter_ubuntu-latest_4-core + # These permissions are needed to interact with GitHub's OIDC Token endpoint. + permissions: + id-token: write + contents: read + steps: + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3 + with: + persist-credentials: false + submodules: true + + - 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: web