ci: setup cypress, e2e tests workflow, and local webpack e2e test #1614
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Validation | |
concurrency: | |
group: pr-${{ github.event.pull_request.number }}-${{ github.event.sender.login }} # This is to make the group name unique for a PR. | |
cancel-in-progress: true | |
on: pull_request | |
permissions: read-all | |
jobs: | |
prebuild: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 https://github.com/actions/checkout/commit/24cb9080177205b6e8c946b17badbe402adc938f | |
with: | |
path: amplify-data | |
- name: Setup node and build the repository | |
uses: ./amplify-data/.github/actions/node-and-build | |
with: | |
is-prebuild: true | |
check-dependencies: | |
uses: ./.github/workflows/callable-dependency-review.yml | |
unit-tests: | |
needs: | |
- prebuild | |
uses: ./.github/workflows/callable-unit-tests.yml | |
check-api: | |
needs: | |
- prebuild | |
uses: ./.github/workflows/callable-check-api.yml | |
check-package-lock: | |
needs: | |
- prebuild | |
uses: ./.github/workflows/callable-check-package-lock.yml | |
check-type-perf: | |
needs: | |
- prebuild | |
uses: ./.github/workflows/callable-check-type-perf.yml | |
check-changeset: | |
needs: | |
- prebuild | |
uses: ./.github/workflows/callable-check-changeset.yml |