workflow-test/.gitea/workflows/lint-test.yaml

36 lines
757 B
YAML
Raw Normal View History

2024-10-15 08:11:11 +00:00
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
2024-10-15 11:57:59 +00:00
- name: Check for changed charts
2024-10-15 12:21:02 +00:00
id: changed-files
uses: tj-actions/changed-files@v44
with:
dir_names: true
2024-10-15 12:30:35 +00:00
dir_names_max_depth: '2'
files: 'charts/**'
2024-10-15 08:11:11 +00:00
2024-10-15 11:57:59 +00:00
- name: List all changed files
2024-10-15 12:21:02 +00:00
run: |
2024-10-15 12:41:03 +00:00
for file in ${{ steps.changed-files.all_changed_and_modified_files }}; do
2024-10-15 12:21:02 +00:00
echo "$file was changed"
2024-10-15 12:34:04 +00:00
helm lint $file
2024-10-15 12:21:02 +00:00
done