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

36 lines
724 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: |
for file in ${{ steps.changed-files.output_all_changed_files }}; do
echo "$file was changed"
done
2024-10-15 08:11:11 +00:00