Skip to content

[WIP] Add GitHub Actions to run helm integration tests [AS-141] #17

[WIP] Add GitHub Actions to run helm integration tests [AS-141]

[WIP] Add GitHub Actions to run helm integration tests [AS-141] #17

Workflow file for this run

---
name: Tests - Helm
on:
pull_request:
types:
- opened
- synchronize
paths:
- .github/workflows/test-helm.yml
- helm/fiftyone-teams-app/**
- tests/fixtures/helm/**
- tests/integration/helm/**
- tests/unit/helm/**
jobs:
unit-helm:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: install asdf & tools
uses: asdf-vm/actions/[email protected]
- name: Run unit tests
shell: bash
run: |
make test-unit-helm
integration-helm-internal:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: install asdf & tools
uses: asdf-vm/actions/[email protected]
- name: Authenticate to Google Cloud
# id: auth
uses: google-github-actions/[email protected]
with:
project_id: 'computer-vision-team'
service_account: '[email protected]'
# token_format: access_token
workload_identity_provider: ${{ secrets.ORG_GOOGLE_WORKLOAD_IDP }}
# - name: Login to GAR
# uses: docker/[email protected]
# with:
# registry: us-central1-docker.pkg.dev
# username: oauth2accesstoken
# password: ${{ steps.auth.outputs.access_token }}
- name: Run Helm integration tests for internal
shell: bash
run: |
echo "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}"
echo "GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}"
echo 'List Artifacts (validate permissions)'
make start run-cert-manager run-mongodb
sudo minikube tunnel &> /dev/null &
make test-integration-helm-internal
# integration-helm-legacy:
# permissions:
# contents: read
# id-token: write
# runs-on: ubuntu-latest
# steps:
# - uses: actions/[email protected]
# - uses: actions/[email protected]
# - name: install asdf & tools
# uses: asdf-vm/actions/[email protected]
# - name: Authenticate to Google Cloud
# id: auth
# uses: google-github-actions/[email protected]
# with:
# project_id: 'computer-vision-team'
# service_account: '[email protected]'
# token_format: access_token
# workload_identity_provider: ${{ secrets.ORG_GOOGLE_WORKLOAD_IDP }}
# - name: Login to GAR
# uses: docker/[email protected]
# with:
# registry: us-central1-docker.pkg.dev
# username: oauth2accesstoken
# password: ${{ steps.auth.outputs.access_token }}
# - name: Run Helm integration tests for legacy
# shell: bash
# run: |
# make start run-cert-manager run-mongodb
# sudo minikube tunnel &> /dev/null &
# make start test-integration-helm-legacy