workflow-test/.gitea/workflows/lint-test.yaml
Jonas Forsberg ab9a1d385f .
2024-10-15 14:47:18 +02:00

39 lines
848 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
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "performing lint"
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
helm lint $file
done