mirror of
https://github.com/bitnami/charts.git
synced 2026-02-19 11:37:23 +08:00
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: Lint and Test Charts
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Fetch history
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.1.0
|
|
|
|
- name: Get list of files with changes in Pull Request
|
|
id: pr-file-changes
|
|
uses: trilom/file-changes-action@v1.2.4
|
|
with:
|
|
fileOutput: ' '
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: |
|
|
if grep -q 'templates\|crds\|Chart.yaml\|values.yaml' $HOME/files.txt; then
|
|
ct lint --config .github/ct-lint.yaml --check-version-increment
|
|
else
|
|
ct lint --config .github/ct-lint.yaml
|
|
fi
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Fetch history
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.1.0
|
|
|
|
- name: Create kind cluster
|
|
uses: helm/kind-action@v1.2.0
|
|
|
|
- name: Run chart-testing (install)
|
|
run: ct install --config .github/ct-install.yaml
|
|
|
|
check-categories:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Fetch history
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Check categories
|
|
uses: bitnami/chart-categories-action@master
|