-
Notifications
You must be signed in to change notification settings - Fork 427
98 lines (80 loc) · 3.2 KB
/
microshift.yaml
File metadata and controls
98 lines (80 loc) · 3.2 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Integration Tests on microshift
permissions:
contents: read
on:
push:
branches:
- main
- release-*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
tekton-triggers-integration-tests-microshift:
runs-on: ubuntu-24.04
name: Integration Tests on microshift
strategy:
fail-fast: false
env:
SHELL: /bin/bash
GOPATH: ${{ github.workspace }}
GO111MODULE: on
KO_DOCKER_REPO: ko.local
CLUSTER_DOMAIN: ${{ github.run_id }}.local
ARTIFACTS: ${{ github.workspace }}/artifacts
SKIP_INITIALIZE: true
SKIP_SECURITY_CTX: true
SKIP_KNATIVE_EG: true
DOCKER_HOST: tcp://localhost:24816
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ${{ github.workspace }}/src/github.com/tektoncd/triggers
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
cache: false
cache-dependency-path: "${{ github.workspace }}/src/github.com/tektoncd/triggers/go.sum"
go-version-file: "${{ github.workspace }}/src/github.com/tektoncd/triggers/go.mod"
- name: Install dependencies
working-directory: ./
run: |
echo '::group::install ko'
curl -L https://github.com/ko-build/ko/releases/download/v0.15.4/ko_0.15.4_Linux_x86_64.tar.gz | tar xzf - ko
echo '::group:: install go-junit-report'
go install github.com/jstemmer/go-junit-report@v0.9.1
echo '::endgroup::'
chmod +x ./ko
sudo mv ko /usr/local/bin
echo '::endgroup::'
echo '::group::create required folders'
mkdir -p "${ARTIFACTS}"
echo '::endgroup::'
echo "${GOPATH}/bin" >> "$GITHUB_PATH"
- name: Run tests
working-directory: ${{ github.workspace }}/src/github.com/tektoncd/triggers
run: |
echo "************************ Setup Podman ************************"
sudo podman system service --time=0 tcp://localhost:24816 &
sleep 7
echo "\ntest the podman tcp connection\n"
curl http://localhost:24816/_ping
echo "\n\n\n************************ Setup Microshift ************************"
curl -L -o minc https://github.com/minc-org/minc/releases/latest/download/minc_linux_amd64
chmod +x minc
./minc create --log-level debug
rm ./minc
export KUBECONFIG=$HOME/.kube/config
curl https://infra.tekton.dev/tekton-releases/pipeline/latest/release.yaml | yq 'del(.spec.template.spec.containers[]?.securityContext.runAsUser, .spec.template.spec.containers[]?.securityContext.runAsGroup)' > release
export RELEASE_YAML=$(realpath release)
"${GOPATH}/src/github.com/tektoncd/triggers/test/gh-e2e-tests.sh"
- name: Upload test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ failure() }}
with:
path: ${{ env.ARTIFACTS }}