Files
athens/.github/workflows/helm.yaml
Workflow config file is invalid. Please check your config file: yaml: line 12: did not find expected key
2020-08-05 11:00:43 -04:00

53 lines
1.6 KiB
YAML

name: Helm Charts
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
paths:
- "charts/*"
jobs:
charts-e2e:
name: Run E2E Tests on the Helm Charts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch history
run: git fetch --prune --unshallow
- name: Run chart-testing (lint)
id: lint
uses: helm/chart-testing-action@v1.0.0
with:
command: lint
- name: Create kind cluster
uses: helm/kind-action@v1.0.0-alpha.3
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
- name: delete default storage class
run: kubectl delete stroageclass standard
- name: create local-path-provisioner stroageclass
run: kubectl apply -f test/local-path-provisioner.yaml
- name: Run chart-testing (install)
uses: helm/chart-testing-action@v1.0.0
with:
command: install
publish:
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Publish Helm Charts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Push charts
uses: docker://gomods/drone-helm
env:
CHARTS_REPO: https://athens.blob.core.windows.net
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}