TrueChartsClone/.github/workflows/catalog-test.yaml

45 lines
1.2 KiB
YAML

name: "SCALE: catalog-tests"
on:
workflow_call:
inputs:
checkoutCommit:
required: true
type: string
chartChangesDetected:
required: true
type: string
jobs:
catalog-tests:
name: Test SCALE Catalog
runs-on: ubuntu-latest
container:
image: ghcr.io/truecharts/devcontainer:v3.1.1@sha256:1d1f3ec0f27e03028602ae9388340704e0b19db31322a3ce7275a0df94b0580c
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
name: Checkout
with:
fetch-depth: 100
ref: ${{ inputs.checkoutCommit }}
- name: Setting repo parent dir as safe safe.directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
repository: truecharts/catalog
path: catalog
- name: build-and-run
run: |
tools/build-release.sh
- uses: vishnudxb/cancel-workflow@c3c77eb4383ba7d023e6614a07d94fe990501ac6 # tag=v1.2
if: failure()
with:
repo: truecharts/charts
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}