Skip to content

Commit

Permalink
test: Moved kubeflow-pipelines-manifests to GitHub Actions (#11066)
Browse files Browse the repository at this point in the history
Signed-off-by: vmudadla <[email protected]>
  • Loading branch information
VaniHaripriya committed Aug 14, 2024
1 parent 3a68b60 commit 4458bdd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/kubeflow-pipelines-manifests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: KFP Manifests

on:
push:
branches: [master]
pull_request:
paths:
- '.github/workflows/kubeflow-pipelines-manifests.yml'
- 'manifests/kustomize/**'

jobs:
kubeflow-pipelines-manifests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
run: ./manifests/kustomize/hack/presubmit.sh
28 changes: 18 additions & 10 deletions manifests/kustomize/hack/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,32 @@ set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)"
TMP="$(mktemp -d)"

# Add TMP to PATH
PATH="$TMP:$PATH"

pushd "${TMP}"
# Install Kustomize

# Install kustomize
KUSTOMIZE_VERSION=5.2.1
# Reference: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/
curl -s -O "https://raw.githubusercontent.com/\
kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
chmod +x install_kustomize.sh
./install_kustomize.sh "${KUSTOMIZE_VERSION}" /usr/local/bin/
# Reference: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.2.1
curl -s -LO "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz"
tar -xzf kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz
chmod +x kustomize

# Install yq
# Reference: https://github.com/mikefarah/yq/releases/tag/3.4.1
curl -s -LO "https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64"
chmod +x yq_linux_amd64
mv yq_linux_amd64 /usr/local/bin/yq
mv yq_linux_amd64 yq

# Install kpt
KPT_VERSION=1.0.0-beta.54
# Reference: https://github.com/kptdev/kpt/releases/tag/v1.0.0-beta.54
curl -s -LO "https://github.com/kptdev/kpt/releases/download/v${KPT_VERSION}/kpt_linux_amd64"
chmod +x kpt_linux_amd64
mv kpt_linux_amd64 kpt
popd

# kpt and kubectl should already be installed in gcr.io/google.com/cloudsdktool/cloud-sdk:latest
# so we do not need to install them here

# trigger real unit tests
${DIR}/test.sh
# verify release script runs properly
Expand Down

0 comments on commit 4458bdd

Please sign in to comment.