Update charts-lint.yaml

This commit is contained in:
Kjeld Schouten-Lebbing
2022-03-31 11:14:14 +02:00
committed by GitHub
parent a26d706d8b
commit 32744747ab
+12 -8
View File
@@ -23,7 +23,8 @@ jobs:
{ {
"chart": ${{ steps.list-changed.outputs.charts2 }} "chart": ${{ steps.list-changed.outputs.charts2 }}
} }
detected: ${{ steps.list-changed.outputs.detected }} detected1: ${{ steps.list-changed.outputs.detected1 }}
detected2: ${{ steps.list-changed.outputs.detected2 }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -46,18 +47,21 @@ jobs:
OUTPUT_JSON2=$(echo $CHARTS_JSON | jq -r -c '.[254:500]') OUTPUT_JSON2=$(echo $CHARTS_JSON | jq -r -c '.[254:500]')
echo ::set-output name=charts1::${OUTPUT_JSON1} echo ::set-output name=charts1::${OUTPUT_JSON1}
echo ::set-output name=charts2::${OUTPUT_JSON2} echo ::set-output name=charts2::${OUTPUT_JSON2}
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then if [[ $(echo ${OUTPUT_JSON1} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected::true" echo "::set-output name=detected1::true"
fi
if [[ $(echo ${OUTPUT_JSON2} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected2::true"
fi fi
lint-charts1: lint-charts1:
needs: needs:
- generate-lint-matrix - generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected == 'true' if: needs.generate-lint-matrix.outputs.detected1 == 'true'
name: Lint charts Part 1 name: Lint charts Part 1
strategy: strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix1) }} matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix1) }}
fail-fast: true fail-fast: false
max-parallel: 10 max-parallel: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -87,11 +91,11 @@ jobs:
lint-charts2: lint-charts2:
needs: needs:
- generate-lint-matrix - generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected == 'true' if: needs.generate-lint-matrix.outputs.detected2 == 'true'
name: Lint charts Part 2 name: Lint charts Part 2
strategy: strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix2) }} matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix2) }}
fail-fast: true fail-fast: false
max-parallel: 5 max-parallel: 5
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -130,6 +134,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check lint matrix status - name: Check lint matrix status
if: ${{ (needs.generate-lint-matrix.outputs.detected == 'true') && (needs.lint-charts1.result != 'success') && ( (needs.lint-charts2.result != 'success') || ( needs.lint-charts2.result != 'skipped' ) ) }} if: ${{ ( (needs.generate-lint-matrix.outputs.detected1 == 'true') && (needs.lint-charts1.result != 'success') ) && ( (needs.generate-lint-matrix.outputs.detected1 == 'true') && ( (needs.lint-charts2.result != 'success') || ( needs.lint-charts2.result != 'skipped' ) ) ) }}
run: exit 1 run: exit 1