Skip to content

Commit 974588f

Browse files
committed
Clean up
1 parent 0cdb7a8 commit 974588f

File tree

3 files changed

+45
-93
lines changed

3 files changed

+45
-93
lines changed

.github/workflows/callable-local-e2e-tests-temp.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/callable-release-verification.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,21 @@ jobs:
77
uses: ./.github/workflows/callable-prebuild-amplify-data.yml
88
with:
99
runs_on: ubuntu-latest
10-
# prebuild-samples-staging:
11-
# secrets: inherit
12-
# uses: ./.github/workflows/callable-prebuild-samples-staging.yml
13-
# unit-tests:
14-
# needs:
15-
# - prebuild-ubuntu
16-
# uses: ./.github/workflows/callable-unit-tests.yml
17-
# local-e2e:
18-
# needs:
19-
# - prebuild-ubuntu
20-
# secrets: inherit
21-
# uses: ./.github/workflows/callable-local-e2e-tests.yml
22-
# e2e:
23-
# needs:
24-
# - prebuild-ubuntu
25-
# - prebuild-samples-staging
26-
# secrets: inherit
27-
# uses: ./.github/workflows/callable-e2e-tests.yml
28-
#
10+
prebuild-samples-staging:
11+
secrets: inherit
12+
uses: ./.github/workflows/callable-prebuild-samples-staging.yml
13+
unit-tests:
14+
needs:
15+
- prebuild-ubuntu
16+
uses: ./.github/workflows/callable-unit-tests.yml
17+
local-e2e:
18+
needs:
19+
- prebuild-ubuntu
20+
secrets: inherit
21+
uses: ./.github/workflows/callable-local-e2e-tests.yml
2922
e2e:
3023
needs:
3124
- prebuild-ubuntu
25+
- prebuild-samples-staging
3226
secrets: inherit
33-
uses: ./.github/workflows/callable-local-e2e-tests-temp.yml
27+
uses: ./.github/workflows/callable-e2e-tests.yml

.github/workflows/push-main-release.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,48 @@ on:
1717
- lzhouq/feat/e2e-webpack
1818

1919
jobs:
20-
# prebuild-ubuntu:
21-
# uses: ./.github/workflows/callable-prebuild-amplify-data.yml
22-
# with:
23-
# runs_on: ubuntu-latest
20+
prebuild-ubuntu:
21+
uses: ./.github/workflows/callable-prebuild-amplify-data.yml
22+
with:
23+
runs_on: ubuntu-latest
2424
# This step is included at the top level as a workround (i.e. not in a
2525
# nested workflow). See: https://github.com/orgs/community/discussions/76409.
2626
# The `configure-aws-credentials` GH Action is unable to retrieve the JWT
2727
# token when run from a nested workflow.
2828
# TODO: Find a workaround or alternative so that this can be included in a
2929
# nested workflow (e.g. `callable-sandbox-e2e-tests.yml`).
30-
# sandbox_test:
31-
# name: Sandbox E2E Tests
32-
# needs: prebuild-ubuntu
33-
# runs-on: ubuntu-latest
34-
# permissions:
35-
# # these permissions are required for the `configure-aws-credentials` action to get a JWT:
36-
# id-token: write
37-
# contents: read
38-
# steps:
39-
# - name: Checkout repository
40-
# uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f
41-
# with:
42-
# path: amplify-data
43-
# - name: Setup node and build the repository
44-
# uses: ./amplify-data/.github/actions/node-and-build
45-
# - name: Configure AWS test execution credentials
46-
# uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # version 4.0.2
47-
# with:
48-
# role-to-assume: ${{ secrets.SANDBOX_E2E_RUNNER_ROLE_ARN }}
49-
# aws-region: us-west-2
50-
# - name: Install Sandbox E2E Dependencies
51-
# working-directory: ./amplify-data
52-
# run: npm run e2e-sandbox:install
53-
# - name: Run E2E sandbox tests
54-
# working-directory: ./amplify-data
55-
# run: npm run e2e-sandbox:test
30+
sandbox_test:
31+
name: Sandbox E2E Tests
32+
needs: prebuild-ubuntu
33+
runs-on: ubuntu-latest
34+
permissions:
35+
# these permissions are required for the `configure-aws-credentials` action to get a JWT:
36+
id-token: write
37+
contents: read
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f
41+
with:
42+
path: amplify-data
43+
- name: Setup node and build the repository
44+
uses: ./amplify-data/.github/actions/node-and-build
45+
- name: Configure AWS test execution credentials
46+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # version 4.0.2
47+
with:
48+
role-to-assume: ${{ secrets.SANDBOX_E2E_RUNNER_ROLE_ARN }}
49+
aws-region: us-west-2
50+
- name: Install Sandbox E2E Dependencies
51+
working-directory: ./amplify-data
52+
run: npm run e2e-sandbox:install
53+
- name: Run E2E sandbox tests
54+
working-directory: ./amplify-data
55+
run: npm run e2e-sandbox:test
5656
release-verification-testing:
5757
secrets: inherit
5858
uses: ./.github/workflows/callable-release-verification.yml
5959
release:
6060
needs:
6161
- release-verification-testing
62-
# - sandbox_test
62+
- sandbox_test
6363
secrets: inherit
6464
uses: ./.github/workflows/callable-npm-publish-release.yml

0 commit comments

Comments
 (0)