From 250b7e637603c71c153c4c4cd2477c35efedb94b Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Tue, 17 Aug 2021 14:04:31 +0200 Subject: [PATCH] parallel fetchtask --- .github/workflows/apps.test.yaml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/apps.test.yaml b/.github/workflows/apps.test.yaml index 5fbe67acc60..1dfdffabc6c 100644 --- a/.github/workflows/apps.test.yaml +++ b/.github/workflows/apps.test.yaml @@ -222,6 +222,14 @@ jobs: container: image: ixsystems/catalog_validation:latest steps: + - name: Cache helm repo cache + uses: actions/cache@v2 + with: + key: helmrepocache-${{ github.sha }} + path: | + ~/.cache/helm/repository + ~/.config/helm/repositories.yaml + - name: Block concurrent jobs uses: softprops/turnstyle@v1 with: @@ -241,14 +249,6 @@ jobs: repository: truecharts/catalog path: catalog - - name: Cache helm repo cache - uses: actions/cache@v2 - with: - key: helmrepocache-${{ github.sha }} - path: | - ~/.cache/helm/repository - ~/.config/helm/repositories.yaml - - name: Install Helm uses: azure/setup-helm@v1 with: @@ -276,16 +276,21 @@ jobs: wait - name: fetch dependencies run: | - for train in stable incubator develop non-free deprecated - do - for chart in master/charts/${train}/*; do + fetchtask(){ + if [ -d "$2/SCALE" ]; then if [ -d "${chart}" ]; then cd ${chart} helm dependency update --skip-refresh cd - fi + } + for train in stable incubator develop non-free deprecated + do + for chart in master/charts/${train}/*; do + fetchtask "${chart}" & done done + wait - name: Apply SCALE Patches run: | for train in stable incubator develop non-free deprecated