-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
42 lines (40 loc) · 1.28 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
stages:
- test
- release
- build
.go_template_defaults:
stage: test
.semver_template_defaults:
stage: release
.kaniko_template_defaults:
stage: build
include:
- { project: bonsai-oss/organization/automate/ci-templates, file: templates/language/go.yml, ref: 1.0.10 }
- { project: bonsai-oss/organization/automate/ci-templates, file: templates/release/semver.yml, ref: 1.0.10 }
- { project: bonsai-oss/organization/automate/ci-templates, file: templates/release/kaniko.yml, ref: 1.0.10 }
Integration Tests:
image: ubuntu:latest
stage: test
needs:
- go fmt
tags:
- hcloud
parallel:
matrix:
- INSTALL_K3S_CHANNEL: [latest, stable]
variables:
HCLOUD_SERVER_TYPE: cpx31
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
before_script:
- (apt update && apt install -y curl git) > /dev/null 2>&1
- curl -sSL https://go.dev/dl/go1.23.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
- /usr/local/go/bin/go install gotest.tools/gotestsum@latest
script:
- bash -x integration-tests/setup.sh
- eval $(cat .env)
- /usr/local/go/bin/go test -v ./integration-tests/... --tags integration -json | /root/go/bin/gotestsum --junitfile report.xml --format testname --raw-command -- cat
artifacts:
reports:
junit: report.xml
when: always