feat(e2e): add benchmarking #7415
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: CI | |
on: | |
pull_request: | |
merge_group: | |
permissions: | |
packages: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
verification: | |
name: Verification | |
uses: ./.github/workflows/reusable-verification.yml | |
secrets: inherit | |
benchmark-test: | |
name: Benchmark Test | |
uses: ./.github/workflows/benchmark-test.yml | |
build: | |
needs: verification | |
name: Build | |
uses: ./.github/workflows/build-and-upload-components.yml | |
with: | |
image_tag: ${{ format('pr{0}-{1}', github.event.pull_request.number, github.sha) }} | |
e2e-docker: | |
needs: build | |
name: End-to-End Tests on Docker | |
uses: ./.github/workflows/reusable-end-to-end-testing.yml | |
with: | |
image_tag: ${{ format('pr{0}-{1}', github.event.pull_request.number, github.sha) }} | |
platform: docker | |
e2e-k8s: | |
needs: build | |
name: End-to-End Tests on Kubernetes | |
uses: ./.github/workflows/reusable-end-to-end-testing.yml | |
with: | |
image_tag: ${{ format('pr{0}-{1}', github.event.pull_request.number, github.sha) }} | |
platform: kubernetes | |
success: | |
# https://github.com/actions/runner/issues/2566 | |
# https://github.com/actions/toolkit/issues/581 | |
if: ${{ !cancelled() && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') }} | |
needs: | |
- build | |
- e2e-docker | |
- e2e-k8s | |
name: Success | |
runs-on: ubuntu-latest | |
steps: | |
- name: Echo Success | |
run: echo "::notice Success!" |