Skip to content

Commit

Permalink
reusable workflow for linux integrations (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: Tatsinnit <[email protected]>
  • Loading branch information
davidgamero and Tatsinnit authored Dec 30, 2024
1 parent d336761 commit 917b221
Show file tree
Hide file tree
Showing 9 changed files with 630 additions and 6,255 deletions.
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

0 comments on commit 917b221

Please sign in to comment.