workflow-test/.gitea/workflows/lint-test.yaml
Jonas Forsberg c7f0e3071a .
2024-10-15 14:41:03 +02:00

36 lines
757 B
YAML

name: Lint and Test Charts
on:
push:
branches:
- main
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4.2.0
with:
version: v3.14.4
- name: Check for changed charts
id: changed-files
uses: tj-actions/changed-files@v44
with:
dir_names: true
dir_names_max_depth: '2'
files: 'charts/**'
- name: List all changed files
run: |
for file in ${{ steps.changed-files.all_changed_and_modified_files }}; do
echo "$file was changed"
helm lint $file
done