add k6 runner image #103
Workflow file for this run
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: pull request validation | |
on: [pull_request] | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
e2e-images: | |
- 'e2e/images/**' | |
- name: Build | |
if: steps.filter.outputs.e2e-images == 'true' | |
run: make build-e2e-images | |
validate-keda-tools: | |
name: Validate keda-tools - ${{ matrix.name }} | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
include: | |
- runner: ARM64 | |
name: arm64 | |
- runner: ubuntu-latest | |
name: amd64 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Register workspace path | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
tools: | |
- 'tools/**' | |
- 'Makefile' | |
- name: Set up QEMU | |
if: steps.filter.outputs.tools == 'true' | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
if: steps.filter.outputs.tools == 'true' | |
uses: docker/setup-buildx-action@v2 | |
- name: Build tools | |
if: steps.filter.outputs.tools == 'true' | |
run: make build-keda-tools | |
validate-keda-k6-runner: | |
name: Validate keda-k6-runner - ${{ matrix.name }} | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
include: | |
- runner: ARM64 | |
name: arm64 | |
- runner: ubuntu-latest | |
name: amd64 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Register workspace path | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
k6-runner: | |
- 'k6-runner/**' | |
- 'Makefile' | |
- name: Set up QEMU | |
if: steps.filter.outputs.k6-runner == 'true' | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
if: steps.filter.outputs.k6-runner == 'true' | |
uses: docker/setup-buildx-action@v2 | |
- name: Build k6-runner | |
if: steps.filter.outputs.k6-runner == 'true' | |
run: make build-keda-k6-runner |