-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (42 loc) · 1.21 KB
/
callable-local-e2e-test.yml
File metadata and controls
45 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: E2E Test
run-name: e2e.${{ inputs.test_name }}
on:
workflow_call:
inputs:
test_name:
required: true
type: string
framework:
required: true
type: string
timeout_minutes:
required: true
type: number
jobs:
e2e-test:
name: E2E ${{ inputs.test_name }}
runs-on: ubuntu-latest
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: amplify-data
- name: Setup node and build the repository
uses: ./amplify-data/.github/actions/node-and-build
- name: Run e2e tests for ${{ inputs.test_name }} dev
shell: bash
working-directory: ./amplify-data
env:
E2E_FRAMEWORK: ${{ inputs.framework }}
E2E_TEST_NAME: ${{ inputs.test_name }}
run: |
yarn ci:test dev
- name: Run e2e tests for ${{ inputs.test_name }} prod
shell: bash
working-directory: ./amplify-data
env:
E2E_FRAMEWORK: ${{ inputs.framework }}
E2E_TEST_NAME: ${{ inputs.test_name }}
run: |
yarn ci:test prod