Skip to content

Commit 612d6c2

Browse files
authored
chore(ci): split yarn environment pull call in workflows (#2516)
* Update guide test to use auth pull * Split environment pull calls in e2e tests
1 parent 83f0f1e commit 612d6c2

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/publish-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: echo "::set-output name=version::$(amplify --version)"
7373
- name: Pull down AWS environments
7474
if: steps.environments-cache.outputs.cache-hit != 'true'
75-
run: yarn environments pull
75+
run: yarn environments auth pull
7676
env:
7777
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7878
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.github/workflows/reusable-e2e.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,23 @@ jobs:
262262
path: environments/**/aws-exports.js
263263
key: ${{ runner.os }}-environments-${{ steps.cli-version.outputs.version }}-${{ hashFiles('environments/**/amplify/**') }}
264264

265-
- name: Pull down AWS environments on cache miss
265+
- name: Pull down Auth AWS environments, on cache miss
266266
if: steps.environments-cache.outputs.cache-hit != 'true'
267-
run: yarn environments pull
267+
run: yarn environments auth pull
268+
env:
269+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
270+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
271+
272+
- name: Pull down Geo AWS environments, on cache miss
273+
if: steps.environments-cache.outputs.cache-hit != 'true'
274+
run: yarn environments geo pull
275+
env:
276+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
277+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
278+
279+
- name: Pull down Datastore AWS environments, on cache miss
280+
if: steps.environments-cache.outputs.cache-hit != 'true'
281+
run: yarn environments datastore pull
268282
env:
269283
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
270284
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)