Skip to content

Commit

Permalink
fix: Canary workflows (#11963)
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro authored Sep 1, 2023
1 parent e8f5ad6 commit 2f2c6c1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 62 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/callable-canary-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
with:
# Minimal depth 2 so we can checkout the commit before possible merge commit.
fetch-depth: 2
path: amplify-js
path: amplify-js
- name: Setup Node.js 16
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 https://github.com/actions/setup-node/commit/64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
Expand All @@ -81,8 +81,8 @@ jobs:
uses: ./amplify-js/.github/actions/setup-samples-staging
with:
GH_TOKEN_STAGING_READ: ${{ secrets.GH_TOKEN_STAGING_READ }}
- name: Modify package.json to run against aws-amplify latest
env:
- name: Modify package.json to run against aws-amplify latest
env:
E2E_FRAMEWORK: ${{ inputs.framework }}
E2E_CATEGORY: ${{ inputs.category }}
E2E_SAMPLE_NAME: ${{ matrix.sample_name }}
Expand All @@ -102,7 +102,7 @@ jobs:
E2E_RETRY_COUNT: ${{ inputs.retry_count }}
E2E_TEST_NAME: ${{ inputs.test_name }}
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
$E2E_FRAMEWORK \
$E2E_CATEGORY \
Expand All @@ -125,7 +125,7 @@ jobs:
E2E_RETRY_COUNT: ${{ inputs.retry_count }}
E2E_TEST_NAME: ${{ inputs.test_name }}
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
$E2E_FRAMEWORK \
$E2E_CATEGORY \
Expand All @@ -146,4 +146,4 @@ jobs:
path: |
amplify-js-samples-staging/cypress/videos
amplify-js-samples-staging/cypress/screenshots
retention-days: 14
retention-days: 14
112 changes: 56 additions & 56 deletions .github/workflows/callable-canary-sampleapp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: boolean
default: true

env:
env:
AMPLIFY_DIR: /home/runner/work/amplify-js/amplify-js/amplify-js
CYPRESS_GOOGLE_CLIENTID: ${{ secrets.CYPRESS_GOOGLE_CLIENTID }}
CYPRESS_GOOGLE_CLIENT_SECRET: ${{ secrets.CYPRESS_GOOGLE_CLIENT_SECRET }}
Expand All @@ -18,13 +18,13 @@ jobs:
build_apps:
name: Build Sample App Tests
runs-on: ubuntu-latest
steps:
steps:
- name: Checkout repository
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f
with:
# Minimal depth 2 so we can checkout the commit before possible merge commit.
fetch-depth: 2
path: amplify-js
path: amplify-js
- name: Setup samples staging repository
uses: ./amplify-js/.github/actions/setup-samples-staging
with:
Expand Down Expand Up @@ -53,18 +53,18 @@ jobs:
working-directory: amplify-js-samples-staging/samples/react/auth/new-react-app
- name: Start new application and run test
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
"ci:test \
react \
auth \
new-react-app \
new-react-app \
chrome \
dev" \
-n 3
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
react \
auth \
new-react-app \
new-react-app \
chrome \
dev" \
-n 3
working-directory: amplify-js-samples-staging
shell: bash

# Angular
- name: Install angular CLI
run: npm install -g @angular/cli
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Copy files from samples staging repo
run: |
rm -r ./samples/angular/interactions/new-angular-app
cp -r ./samples/angular/interactions/chatbot-component ./samples/angular/interactions/new-angular-app
cp -r ./samples/angular/interactions/chatbot-component ./samples/angular/interactions/new-angular-app
working-directory: amplify-js-samples-staging
- name: Copy test file from samples staging repo
run: |
Expand All @@ -93,15 +93,15 @@ jobs:
working-directory: amplify-js-samples-staging/samples/angular/interactions/new-angular-app
- name: Start application and run test
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
"ci:test \
angular \
interactions \
new-angular-app \
new-angular-app \
chrome \
dev" \
-n 3
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
angular \
interactions \
new-angular-app \
new-angular-app \
chrome \
dev" \
-n 3
working-directory: amplify-js-samples-staging
shell: bash

Expand All @@ -115,7 +115,7 @@ jobs:
- name: Copy files from samples staging repo
run: |
rm -r ./samples/next/auth/new-next-app
cp -r ./samples/next/auth/auth-rsc ./samples/next/auth/new-next-app
cp -r ./samples/next/auth/auth-rsc ./samples/next/auth/new-next-app
working-directory: amplify-js-samples-staging
- name: Copy test file from samples staging repo
run: |
Expand All @@ -131,21 +131,21 @@ jobs:
working-directory: amplify-js-samples-staging/samples/next/auth/new-next-app
- name: Start application and run test
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
"ci:test \
next \
auth \
new-next-app \
new-next-app \
chrome \
dev" \
-n 3
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
next \
auth \
new-next-app \
new-next-app \
chrome \
dev" \
-n 3
working-directory: amplify-js-samples-staging
shell: bash

# Vue
- name: Create Vue application
run: |
run: |
npm init vue@3
working-directory: amplify-js-samples-staging/samples/vue/auth
- name: Copy files from samples staging repo
Expand All @@ -166,15 +166,15 @@ jobs:
working-directory: amplify-js-samples-staging/samples/vue/auth/new-vue-app
- name: Start application and run test
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
"ci:test \
vue \
auth \
new-vue-app \
new-vue-app \
chrome \
dev" \
-n 3
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
vue \
auth \
new-vue-app \
new-vue-app \
chrome \
dev" \
-n 3
working-directory: amplify-js-samples-staging
shell: bash

Expand All @@ -195,7 +195,7 @@ jobs:
- name: Copy files from samples staging repo
run: |
rm -r ./samples/javascript/auth/new-javascript-app
cp -r ./samples/javascript/auth/auth-cdn ./samples/javascript/auth/new-javascript-app
cp -r ./samples/javascript/auth/auth-cdn ./samples/javascript/auth/new-javascript-app
working-directory: amplify-js-samples-staging
- name: Copy test file from samples staging repo
run: |
Expand All @@ -208,15 +208,15 @@ jobs:
env:
AMPLIFY_DIR: ${{ env.AMPLIFY_DIR }}
run: |
../amplify-js/.circleci/retry-yarn-script.sh -s \
"ci:test \
javascript \
auth \
new-javascript-app \
new-javascript-app \
chrome \
dev \
$AMPLIFY_DIR" \
-n 3
../amplify-js/scripts/retry-yarn-script.sh -s \
"ci:test \
javascript \
auth \
new-javascript-app \
new-javascript-app \
chrome \
dev \
$AMPLIFY_DIR" \
-n 3
working-directory: amplify-js-samples-staging
shell: bash
shell: bash

0 comments on commit 2f2c6c1

Please sign in to comment.