Skip to content

[GHA] Fix not fetching helm deps #102

[GHA] Fix not fetching helm deps

[GHA] Fix not fetching helm deps #102

Workflow file for this run

name: CI
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
workflow_dispatch: {}
push:
branches: ['**']
pull_request: {}
env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
HELM_REPO: "oci://ghcr.io/${{ github.repository }}/charts"
GO_VERSION: 1.20.4
GOPRIVATE: 'github.com/meln5674/*'
HELM_VERSION: v3.12.0
COSIGN_VERSION: v1.13.0
YQ_VERSION: v4.27.2
jobs:
lint:
# runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: read
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v3
# Install deps
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: '${{ env.HELM_VERSION }}'
- uses: actions/setup-go@v4
with:
go-version: '^${{ env.GO_VERSION }}'
- name: Install Dependencies
run: |
make deps
# Run Linter
- name: Lint standalone chart
run: |
cd deploy/helm/mlflow-oidc-proxy
../../../bin/helm dependency build
../../../bin/helm-hog test --no-apply --batch --auto-remove-success --parallel=0
- name: Lint omnibus dependencies chart
run: |
cd deploy/helm/mlflow-multitenant-deps
../../../bin/helm lint .
../../../bin/helm template .
- name: Lint omnibus chart
run: |
cd deploy/helm/mlflow-multitenant
../../../bin/helm dependency build
../../../bin/helm-hog test --no-apply --batch --auto-remove-success --parallel=0
test:
# runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: read
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
# Install Deps
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: '${{ env.HELM_VERSION }}'
- uses: actions/setup-go@v4
with:
go-version: '^${{ env.GO_VERSION }}'
- name: Install Dependencies
run: |
make deps
cd deploy/helm/mlflow-multitenant
../../../bin/helm dependency build
# Tests
- name: Unit Tests
run: |
make test
- name: End-to-End Tests
run: |
make e2e IS_CI=1