[charts/cosi] add COSI driver helm chart #441
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action checks the Helm Chart changes for linting and version updates | |
name: helm-validations | |
# Check runs on PRs created to merge to main branch | |
on: | |
pull_request: | |
branches: | |
- main | |
- karavi-observability-release | |
- csm-authorization-release | |
- release-v* | |
jobs: | |
# This job will check to see if any .yaml file is modified | |
check_files: | |
runs-on: ubuntu-latest | |
outputs: | |
run_tests: ${{ steps.diff.outputs.run_tests }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check for files changed | |
id: diff | |
run: | | |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | |
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename') | |
echo $FILES | grep \.yaml && echo '::set-output name=run_tests::true' || true | |
# This job will run helm lint and version increment check on updated charts | |
lint: | |
runs-on: ubuntu-latest | |
# Only run job when .yaml file is changed | |
needs: check_files | |
if: needs.check_files.outputs.run_tests == 'true' | |
steps: | |
# Check out the repo | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
# Lint and version increment checks on updated charts | |
- name: Run lint/version increment checks | |
id: versionIncrement | |
uses: helm/[email protected] | |
with: | |
command: lint | |
config: lintConfig.yaml | |
# This job checks that dependency versions have been updated on the karavi-observability chart | |
dependency: | |
runs-on: ubuntu-latest | |
# Only run job when .yaml file is changed | |
needs: check_files | |
if: needs.check_files.outputs.run_tests == 'true' | |
steps: | |
# Check out the repo | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
# Run a check on karavi-observability chart for updated dependency versions | |
- name: Run dependency version checks | |
id: lint | |
uses: helm/[email protected] | |
with: | |
command: lint | |
config: dependencyConfig.yaml |