Files
my-rook-config/.github/workflows/helm-lint.yaml
T
Madhu Rajanna 4a26d389b7 ci: stop inprogress jobs when pr is updated
stop the in progress jobs when a PR is updated

Ref: https://docs.github.com/en/actions/using-workflows/ \
workflow-syntax-for-github-actions# \
example-using-concurrency-to-cancel-any-in-progress-job-or-run

example job is here
https://core.trac.wordpress.org/changeset/50930

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-05-30 12:11:48 +05:30

44 lines
1021 B
YAML

# Reference https://github.com/helm/chart-testing-action/tree/master#example-workflow
name: Lint Charts
on:
push:
tags:
- v*
branches:
- master
- release-*
pull_request:
branches:
- master
- release-*
# cancel the in-progress workflow when PR is refreshed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.6.2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0
- name: Run chart-testing (lint)
run: ct lint --charts=./deploy/charts/rook-ceph --validate-yaml=false --validate-maintainers=false