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:
|
2022-11-30 19:28:27 +00:00
|
|
|
image: ghcr.io/truecharts/devcontainer:v3.1.1@sha256:f0ecaa533663f88346b745eb497f6f6acf63561ad88e345cd71c8280963b8c1e
|
2022-03-30 10:26:37 +00:00
|
|
|
steps:
|
2022-12-12 23:01:40 +00:00
|
|
|
- uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # v3
|
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"
|
|
|
|
|
2022-03-30 10:26:37 +00:00
|
|
|
- name: Checkout
|
2022-12-12 23:01:40 +00:00
|
|
|
uses: actions/checkout@7dd9e2a3dc350cf687eb1b2a4fadfee8c8e49675 # v3
|
2022-03-30 10:26:37 +00:00
|
|
|
with:
|
|
|
|
repository: truecharts/catalog
|
|
|
|
path: catalog
|
|
|
|
|
|
|
|
- name: build-and-run
|
|
|
|
run: |
|
|
|
|
tools/build-release.sh
|
2022-07-06 11:25:34 +00:00
|
|
|
|
2022-07-06 18:09:28 +00:00
|
|
|
- uses: vishnudxb/cancel-workflow@c3c77eb4383ba7d023e6614a07d94fe990501ac6 # tag=v1.2
|
2022-07-06 11:25:34 +00:00
|
|
|
if: failure()
|
|
|
|
with:
|
2022-08-08 21:57:58 +00:00
|
|
|
repo: truecharts/charts
|
2022-07-06 11:25:34 +00:00
|
|
|
workflow_id: ${{ github.run_id }}
|
|
|
|
access_token: ${{ github.token }}
|