2022-03-30 10:26:37 +00:00
|
|
|
name: "SCALE: catalog-tests"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
checkoutCommit:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
chartChangesDetected:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
2022-03-30 10:38:40 +00:00
|
|
|
catalog-tests:
|
|
|
|
name: Test SCALE Catalog
|
2022-03-30 10:26:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2023-05-05 14:32:00 +00:00
|
|
|
image: ghcr.io/truecharts/devcontainer:3.1.10@sha256:c239addf725eb5cedf79517f8089fdafdc32b5270d1893ee87ae6e511b9bcae3
|
2022-03-30 10:26:37 +00:00
|
|
|
steps:
|
2023-09-04 16:23:21 +00:00
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
2022-03-30 10:26:37 +00:00
|
|
|
name: Checkout
|
|
|
|
with:
|
|
|
|
fetch-depth: 100
|
|
|
|
ref: ${{ inputs.checkoutCommit }}
|
|
|
|
|
2022-11-24 10:38:48 +00:00
|
|
|
- name: Setting repo parent dir as safe safe.directory
|
|
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
|
2023-05-29 09:20:59 +00:00
|
|
|
## TODO: Only run on the existing catalog when CI or template changes are actually detected
|
|
|
|
# - name: Checkout
|
|
|
|
# uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
|
|
|
# with:
|
|
|
|
# repository: truecharts/catalog
|
|
|
|
# path: catalog
|
2022-03-30 10:26:37 +00:00
|
|
|
|
|
|
|
- name: build-and-run
|
|
|
|
run: |
|
|
|
|
tools/build-release.sh
|