forked from Azure/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (107 loc) · 3.58 KB
/
integration-tests.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
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
# 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@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: make
run: make
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: helm-skaffold
path: ./test/skaffold.yaml
if-no-files-found: error
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
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@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: make
run: make
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: draft-binary-win
path: ./draft.exe
if-no-files-found: error
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: check_windows_helm
path: ./test/check_windows_helm.ps1
if-no-files-found: error
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: check_windows_addon_helm
path: ./test/check_windows_addon_helm.ps1
if-no-files-found: error
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: check_windows_kustomize
path: ./test/check_windows_kustomize.ps1
if-no-files-found: error
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: check_windows_addon_kustomize
path: ./test/check_windows_addon_kustomize.ps1
if-no-files-found: error
language-integration-test:
name: Matrix
needs:
- build-linux
- build-windows
strategy:
matrix:
language: ["gomodule"] # we dont actually want a matrix here, so we include cases individually
repo: ["davidgamero/go_echo"]
include:
- language: "go"
repo: "davidgamero/go-echo-no-mod"
- language: "python"
repo: "OliverMKing/flask-hello-world"
- language: "rust"
repo: "OliverMKing/tiny-http-hello-world"
- language: "javascript"
repo: "davidgamero/express-hello-world"
- language: "ruby"
repo: "davidgamero/sinatra-hello-world"
- language: "csharp"
repo: "imiller31/csharp-simple-web-app"
- language: "java"
repo: "imiller31/simple-java-server"
- language: "gradle"
repo: "imiller31/simple-gradle-server"
- language: "swift"
repo: "OliverMKing/swift-hello-world"
- language: "erlang"
repo: "bfoley13/ErlangExample"
- language: "clojure"
repo: "imiller31/clojure-simple-http"
uses: ./.github/workflows/integration-per-language.yml
with:
language: ${{ matrix.language }}
repo: ${{ matrix.repo }}
linux-integration-summary:
name: Integration Test Summary
needs: language-integration-test
runs-on: ubuntu-latest
steps:
- run: |
echo "Success"