Skip to content

Commit

Permalink
TEMP - force a test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle committed Oct 11, 2023
1 parent c29ba4d commit b01b404
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/amplify_analytics_pinpoint_example copy.yaml
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions .github/workflows/e2e_web copy.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b01b404

Please sign in to comment.