Skip to content

Commit

Permalink
make repo a param for matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamero committed Dec 13, 2024
1 parent 69712c9 commit a25d6bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/integration-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ jobs:
needs: build
strategy:
matrix:
language: ["gomodule", "go"]
language: []
repo: []
include:
- language: "gomodule"
repo: "gambtho/go_echo"
- language: "go"
repo: "davidgamero/go-echo-no-mod"
uses: ./.github/workflows/integration-per-language.yml
with:
language: ${{ matrix.language }}
repo: ${{ matrix.repo }}
13 changes: 6 additions & 7 deletions .github/workflows/integration-per-language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
description: "The language to test"
required: true
type: string
repo:
description: "The repo to test"
required: true
type: string
jobs:
helm-dry-run:
runs-on: ubuntu-latest
Expand All @@ -16,11 +20,9 @@ jobs:
name: draft-binary
- run: chmod +x ./draft
- run: mkdir ./langtest
- run: |
echo "repo=$(cat ./test/integration_config.json | jq -r '.[] | select(.language == ${{ inputs.language }}) | .repo')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
repository: ${{ env.repo }}
repository: ${{ inputs.repo }}
path: ./langtest
- name: Execute Dry Run with config file
run: |
Expand Down Expand Up @@ -73,11 +75,9 @@ jobs:
name: draft-binary
- run: chmod +x ./draft
- run: mkdir ./langtest
- run: |
echo "repo=$(cat ./test/integration_config.json | jq -r '.[] | select(.language == ${{ inputs.language }}) | .repo')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
repository: ${{ env.repo }}
repository: ${{ inputs.repo }}
path: ./langtest
- run: |
rm -rf ./langtest/manifests
Expand All @@ -104,7 +104,6 @@ jobs:
releaseName: "test-release"
id: bake
- name: Build and Push image
continue-on-error: true
run: |
export SHELL=/bin/bash
eval $(minikube -p minikube docker-env)
Expand Down
2 changes: 1 addition & 1 deletion template/deployments/helm/draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ variables:
kind: "kubernetesProbeDelay"
default:
disablePrompt: true
value: 5
value: 10
description: "kubernetes startup probe initial delay in seconds"
versions: ">=0.0.1"
- name: "READINESSPERIOD"
Expand Down

0 comments on commit a25d6bd

Please sign in to comment.