-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kyle
committed
Oct 11, 2023
1 parent
c29ba4d
commit b01b404
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
.github/workflows/amplify_analytics_pinpoint_example copy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |