|
17 | 17 | - lzhouq/feat/e2e-webpack |
18 | 18 |
|
19 | 19 | 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 |
24 | 24 | # This step is included at the top level as a workround (i.e. not in a |
25 | 25 | # nested workflow). See: https://github.com/orgs/community/discussions/76409. |
26 | 26 | # The `configure-aws-credentials` GH Action is unable to retrieve the JWT |
27 | 27 | # token when run from a nested workflow. |
28 | 28 | # TODO: Find a workaround or alternative so that this can be included in a |
29 | 29 | # 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 |
56 | 56 | release-verification-testing: |
57 | 57 | secrets: inherit |
58 | 58 | uses: ./.github/workflows/callable-release-verification.yml |
59 | 59 | release: |
60 | 60 | needs: |
61 | 61 | - release-verification-testing |
62 | | - # - sandbox_test |
| 62 | + - sandbox_test |
63 | 63 | secrets: inherit |
64 | 64 | uses: ./.github/workflows/callable-npm-publish-release.yml |
0 commit comments