Add image-analysis UI and refactor into multiple Helm charts #18
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
# Based on https://github.com/azimuth-cloud/azimuth/blob/master/.github/workflows/test-pr.yaml | ||
name: Test pull request | ||
on: | ||
# We use pull_request_target so that dependabot-created workflows can run | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- ready_for_review | ||
- reopened | ||
branches: | ||
- master | ||
pull_request: | ||
# Use the head ref for workflow concurrency, with cancellation | ||
# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
# This job exists so that PRs from outside the main repo are rejected | ||
fail_on_remote: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR must be from a branch in the azimuth-cloud/azimuth repo | ||
run: exit ${{ github.event.pull_request.head.repo.full_name == 'azimuth-cloud/azimuth' && '0' || '1' }} | ||
publish_artifacts: | ||
needs: [fail_on_remote] | ||
uses: ./.github/workflows/build-push-artifacts.yaml | ||
Check failure on line 32 in .github/workflows/test-pr.yml GitHub Actions / .github/workflows/test-pr.ymlInvalid workflow file
|
||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
secrets: inherit | ||
chart_validation: | ||
needs: [publish_artifacts] | ||
runs-on: ubuntu-latest | ||
env: | ||
CLUSTER_NAME: chart-testing | ||
RELEASE_NAME: ci-test | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
- name: Set up chart testing | ||
uses: helm/chart-testing-action@v2 | ||
- name: Run chart linting | ||
run: ct lint --config ct.yaml | ||
- name: Create Kind Cluster | ||
uses: helm/kind-action@v1 | ||
with: | ||
cluster_name: ${{ env.CLUSTER_NAME }} | ||
- name: Add Helm repos for dependencies | ||
run: | | ||
helm repo add stakater https://stakater.github.io/stakater-charts | ||
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values | ||
# Each chart/ci/*-values.yaml file will be treated as a separate test case with it's | ||
# own helm install/test process. | ||
- name: Run chart install and test | ||
run: ct install --config ct.yaml | ||