Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reusable workflow for linux integrations #445

Merged
merged 39 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e002ba4
reusable workflow for helm integrations
davidgamero Dec 12, 2024
9872ebe
matrix needs build
davidgamero Dec 12, 2024
6c1ca60
jq -raw
davidgamero Dec 12, 2024
57f07d1
create command missing cmd newline
davidgamero Dec 12, 2024
1894970
use repo input
davidgamero Dec 12, 2024
d8ee868
remove residual bash escapes
davidgamero Dec 12, 2024
f279b67
bump k8s bake
davidgamero Dec 13, 2024
7947d2c
escape on k8s-deploy
davidgamero Dec 13, 2024
0f8df64
use language input
davidgamero Dec 13, 2024
7d98734
more shell escapes
davidgamero Dec 13, 2024
a2cbcb3
remove existing charts/overlays
davidgamero Dec 13, 2024
69712c9
skip file detection
davidgamero Dec 13, 2024
a25d6bd
make repo a param for matrix
davidgamero Dec 13, 2024
4c82053
add to matrix
davidgamero Dec 13, 2024
3bd620d
external build image name
davidgamero Dec 13, 2024
77006ef
port 80 for servies
davidgamero Dec 13, 2024
b3f2a15
validate generated actions
davidgamero Dec 13, 2024
9e89313
switch to davidgamero go echo fork
davidgamero Dec 13, 2024
bd21d34
kustomize workflow
davidgamero Dec 13, 2024
eafeb27
fix minikube tunnel
davidgamero Dec 13, 2024
0939a61
add manifest reusable workflow
davidgamero Dec 13, 2024
db20964
language var
davidgamero Dec 14, 2024
a430a80
Merge branch 'main' into davidgamero/integrations-reusable-workflows
davidgamero Dec 16, 2024
220eb3d
revert startup delay
davidgamero Dec 16, 2024
198a0ef
verbose on manifest output
davidgamero Dec 17, 2024
57fdc8e
extra space
davidgamero Dec 17, 2024
10249b4
switch to gh vars for lang in manifest create
davidgamero Dec 18, 2024
477b9ed
fix helm->manifest
davidgamero Dec 18, 2024
19f8d0e
version bumps
davidgamero Dec 18, 2024
bd3e725
uses
davidgamero Dec 18, 2024
7ff2d53
indent
davidgamero Dec 18, 2024
2956862
runs on
davidgamero Dec 18, 2024
7489eaf
add all repos
davidgamero Dec 18, 2024
0584546
python entrypoint
davidgamero Dec 18, 2024
a121d59
Merge branch 'main' into davidgamero/integrations-reusable-workflows
Tatsinnit Dec 23, 2024
225a6da
Merge branch 'main' into davidgamero/integrations-reusable-workflows
davidgamero Dec 30, 2024
f9b10e4
use new workflow file to clean up diff
davidgamero Dec 30, 2024
71ba9d1
remove generation
davidgamero Dec 30, 2024
b46678e
Merge branch 'main' into davidgamero/integrations-reusable-workflows
davidgamero Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,328 changes: 0 additions & 5,328 deletions .github/workflows/integration-linux.yml

This file was deleted.

556 changes: 556 additions & 0 deletions .github/workflows/integration-per-language.yml

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions .github/workflows/integrations-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# this file is generated using gen_integration.sh
name: Linux Integration Tests
on:
pull_request:
branches: [main, staging]
workflow_dispatch:
jobs:
build:
name: Build Draft 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
language-integration-test:
name: Matrix
needs: build
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: Linux Integration Summary
needs: language-integration-test
runs-on: ubuntu-latest
steps:
- run: |
echo "Success"
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: all
all: build generate-integrations
all: build


.PHONY: test
Expand All @@ -14,12 +14,6 @@ run-unit-tests:
run-e2e-tests-local: build
test/check_info_schema.sh;

.PHONY: generate-integrations
generate-integrations:
cd ./test; \
./gen_integration.sh; \
cd ..;

.PHONY: build
build:
GO111MODULE=on go build -v -o .
Expand Down Expand Up @@ -56,4 +50,4 @@ clean-entra-app:
else \
az ad app delete --id $$APP_ID_TO_DELETE; \
echo "Deleted Azure entra application with display name: $$APP_DISPLAY_NAME"; \
fi
fi
Loading
Loading