Skip to content

Commit e1f6247

Browse files
committed
Switch task downloading to the same mechanisn that we are using for kind, kubectl and so on to avoid rate limits from github
1 parent 3e1bcb1 commit e1f6247

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323
KIND_BINARY_VERSION: "v0.27.0"
2424
HELM_VERSION: "v3.17.3"
2525
HELM_PLUGIN_UNITTEST: "0.5.1"
26+
TASK_VERSION: "v3.44.0"
2627

2728
jobs:
2829
test-nodejs-scanner-test-helpers:
@@ -42,7 +43,7 @@ jobs:
4243
working-directory: tests/integration
4344
run: bun test helpers.test.js
4445
k8s-setup:
45-
name: "Setup Kind & Kubectl & Helm"
46+
name: "Setup Kind & Kubectl & Helm & Task"
4647
runs-on: ubuntu-22.04
4748
steps:
4849
- uses: actions/checkout@v4
@@ -62,6 +63,12 @@ jobs:
6263
curl -Lo ./helm.tar.gz https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
6364
tar -xzf ./helm.tar.gz
6465
chmod +x ./linux-amd64/helm
66+
67+
- name: Install Task
68+
run: |
69+
curl -Lo ./task.tar.gz https://github.com/go-task/task/releases/download/${{ env.TASK_VERSION }}/task_darwin_amd64.tar.gz
70+
tar -xzf ./task.tar.gz
71+
chmod +x ./task
6572
6673
- name: Archive Kind
6774
uses: actions/upload-artifact@v4
@@ -80,6 +87,12 @@ jobs:
8087
with:
8188
name: helm
8289
path: ./linux-amd64/helm
90+
91+
- name: Archive Task
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: task
95+
path: ./task
8396

8497
# ---- Unit-Test ----
8598

@@ -110,10 +123,15 @@ jobs:
110123
run: |
111124
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version ${{ env.HELM_PLUGIN_UNITTEST }}
112125
113-
- name: Install Task
114-
uses: arduino/setup-task@v2
126+
- name: Download Task
127+
uses: actions/download-artifact@v4
115128
with:
116-
version: 3.x
129+
name: task
130+
path: ./task
131+
132+
- name: Make Task globally available
133+
run: |
134+
chmod +x ./task/task && sudo mv ./task/task /usr/local/bin/task
117135
118136
- name: Helm-Chart Unit Tests
119137
run: task test:helm:all
@@ -426,10 +444,15 @@ jobs:
426444
- name: Install bun
427445
uses: oven-sh/setup-bun@v2
428446

429-
- name: Install Task
430-
uses: arduino/setup-task@v2
447+
- name: Download Task
448+
uses: actions/download-artifact@v4
431449
with:
432-
version: 3.x
450+
name: task
451+
path: ./task
452+
453+
- name: Make Task globally available
454+
run: |
455+
chmod +x ./task/task && sudo mv ./task/task /usr/local/bin/task
433456
434457
- name: Download Kind
435458
uses: actions/download-artifact@v4
@@ -573,10 +596,15 @@ jobs:
573596
- name: Install bun
574597
uses: oven-sh/setup-bun@v2
575598

576-
- name: Install Task
577-
uses: arduino/setup-task@v2
599+
- name: Download Task
600+
uses: actions/download-artifact@v4
578601
with:
579-
version: 3.x
602+
name: task
603+
path: ./task
604+
605+
- name: Make Task globally available
606+
run: |
607+
chmod +x ./task/task && sudo mv ./task/task /usr/local/bin/task
580608
581609
- name: Download Kind
582610
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)