49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: E2E test with manifests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
|
|
paths:
|
|
- "**/kubernetes/manifests/**"
|
|
- "**/tests/test_manifest**"
|
|
- "!**.md"
|
|
- "!**.txt"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
job1:
|
|
uses: ./.github/workflows/_get-test-matrix.yml
|
|
with:
|
|
diff_excluded_files: '.github|deprecated|docker|assets|*.md|*.txt'
|
|
xeon_server_label: 'xeon'
|
|
gaudi_server_label: 'gaudi'
|
|
|
|
mega-image-build:
|
|
needs: job1
|
|
strategy:
|
|
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
|
|
uses: ./.github/workflows/_image-build.yml
|
|
with:
|
|
image_tag: ${{ github.event.pull_request.head.sha }}
|
|
mega_service: "${{ matrix.example }}"
|
|
runner_label: "docker-build-${{ matrix.hardware }}"
|
|
|
|
manifest-test:
|
|
needs: [job1, mega-image-build]
|
|
strategy:
|
|
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
|
|
uses: ./.github/workflows/_manifest-e2e.yml
|
|
with:
|
|
example: ${{ matrix.example }}
|
|
hardware: ${{ matrix.hardware }}
|
|
tag: ${{ needs.mega-image-build.outputs.image_tag }}
|
|
secrets: inherit
|