-
Notifications
You must be signed in to change notification settings - Fork 72
183 lines (183 loc) · 5.23 KB
/
integration-tests.yml
File metadata and controls
183 lines (183 loc) · 5.23 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# this file is generated using gen_integration.sh
name: Integration Tests
on:
pull_request:
branches: [main, staging]
workflow_dispatch:
jobs:
build-linux:
name: Build Draft Linux Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.25'
cache: true
- name: make
run: make
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: helm-skaffold
path: ./test/skaffold.yaml
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: draft-binary
path: ./draft
if-no-files-found: error
build-windows:
name: Build Draft Windows Binary
runs-on: windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.25'
cache: true
- name: make
run: make
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: draft-binary-win
path: ./draft.exe
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: check_windows_helm
path: ./test/check_windows_helm.ps1
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: check_windows_addon_helm
path: ./test/check_windows_addon_helm.ps1
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: check_windows_kustomize
path: ./test/check_windows_kustomize.ps1
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: check_windows_addon_kustomize
path: ./test/check_windows_addon_kustomize.ps1
if-no-files-found: error
gomodule:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: gomodule
repo: davidgamero/go_echo
go:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: go
repo: "davidgamero/go-echo-no-mod"
python:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "python"
repo: "OliverMKing/flask-hello-world"
rust:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "rust"
repo: "OliverMKing/tiny-http-hello-world"
javascript:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "javascript"
repo: "davidgamero/express-hello-world"
ruby:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "ruby"
repo: "davidgamero/sinatra-hello-world"
csharp:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "csharp"
repo: "imiller31/csharp-simple-web-app"
java:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "java"
repo: "imiller31/simple-java-server"
gradle:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "gradle"
repo: "imiller31/simple-gradle-server"
swift:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "swift"
repo: "davidgamero/swift-hello-world"
erlang:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "erlang"
repo: "bfoley13/ErlangExample"
clojure:
needs:
- build-linux
- build-windows
uses: ./.github/workflows/integration-per-language.yml
with:
language: "clojure"
repo: "imiller31/clojure-simple-http"
linux-integration-fail:
name: Integration Test Summary
runs-on: ubuntu-latest
needs:
- gomodule
- go
- python
- rust
- javascript
- ruby
- csharp
- java
- gradle
- swift
- erlang
- clojure
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }} # i cant believe this is necessary https://github.com/actions/runner/issues/2566
steps:
- run: |
echo "Some workflows have failed!"
exit 1