Skip to content

Commit caa3e01

Browse files
committed
ci: update workflows
Signed-off-by: Ilya Drey <ilya.drey@flant.com>
1 parent 4f61837 commit caa3e01

3 files changed

Lines changed: 62 additions & 70 deletions

File tree

.github/workflows/build_dev.yml

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,6 @@ jobs:
135135
module_tag: ${{ steps.modules_module_tag.outputs.MODULES_MODULE_TAG }}
136136
svace_enabled: false
137137

138-
- name: Save module tag info
139-
run: echo "${{ steps.modules_module_tag.outputs.MODULES_MODULE_TAG }}" > module_tag_name.txt
140-
141-
- uses: actions/upload-artifact@v4
142-
with:
143-
name: module_tag_name
144-
path: module_tag_name.txt
145138
show_dev_manifest:
146139
runs-on: [self-hosted, large]
147140
name: Show manifest
@@ -198,3 +191,46 @@ jobs:
198191
dev_registry_user: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }}
199192
dev_registry_password: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }}
200193
deckhouse_private_repo: ${{ secrets.DECKHOUSE_PRIVATE_REPO }}
194+
195+
e2e_tests:
196+
name: Run e2e tests
197+
runs-on: [self-hosted, large]
198+
concurrency:
199+
group: ${{ github.workflow }}
200+
cancel-in-progress: false
201+
needs: build_dev
202+
steps:
203+
- uses: actions/checkout@v4
204+
205+
- name: Setup Go
206+
uses: actions/setup-go@v5
207+
with:
208+
cache: true
209+
go-version-file: tests/e2e/go.mod
210+
211+
- name: Install Task
212+
uses: arduino/setup-task@v2
213+
with:
214+
repo-token: ${{ secrets.GITHUB_TOKEN }}
215+
216+
- name: Install ginkgo
217+
run: task --yes -p e2e:deps:install:ginkgo
218+
219+
- name: Install kubectl
220+
run: task --yes -p e2e:deps:install:kubectl
221+
222+
- name: Setup kind with module operator-helm enabled
223+
run: task --yes -p e2e:kind:ci:setup
224+
env:
225+
KIND_CLUSTER_NAME: d8-operator-helm
226+
MODULE_TAG_NAME: ${{ steps.modules_module_tag.outputs.MODULES_MODULE_TAG }}
227+
DEV_REGISTRY_DOCKER_CONFIG: ${{ secrets.DEV_REGISTRY_DOCKER_CONFIG }}
228+
229+
- name: Run e2e tests
230+
run: task --yes -p e2e:tests
231+
env:
232+
E2E_CLUSTERTRANSPORT_KUBECONFIG: "~/.kind-d8-operator-helm/kubeconfig"
233+
234+
- name: Delete kind cluster
235+
run: task --yes -p e2e:kind:ci:cleanup
236+
if: always()

.github/workflows/e2e_tests.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

tests/e2e/Taskfile.dist.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ tasks:
1414
version="$(go list -m -f '{{ printf `{{ .Version }}` }}' github.com/onsi/ginkgo/v2)"
1515
go install {{.CLI_ARGS}} github.com/onsi/ginkgo/v2/ginkgo@${version}
1616
17+
deps:install:kubectl:
18+
desc: "Install kubectl binary for the current OS/Arch"
19+
internal: true
20+
cmds:
21+
- |
22+
curl -LO "https://dl.k8s.io/release/{{.K8S_VERSION}}/bin/{{.OS}}/{{.ARCH}}/kubectl"
23+
chmod +x ./kubectl
24+
mkdir -p {{.GOPATH}}/bin
25+
mv ./kubectl {{.GOPATH}}/bin/kubectl
26+
status:
27+
- which kubectl
28+
vars:
29+
OS: '{{OS}}'
30+
ARCH: '{{ARCH}}'
31+
K8S_VERSION:
32+
sh: curl -L -s https://dl.k8s.io/release/stable.txt
33+
GOPATH:
34+
sh: go env GOPATH
35+
1736
kind:ci:setup:
1837
desc: Setup kind in CI
1938
cmds:

0 commit comments

Comments
 (0)