feature: add supports for zipkin-dependencies job as a k8s cronjob #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yamllint --format github .github/workflows/test.yml | |
--- | |
name: test | |
# We test the helm chart including an apply following the steps described in | |
# https://github.com/helm/chart-testing-action | |
# We don't test documentation-only commits. | |
on: | |
push: | |
branches: master | |
paths-ignore: | |
- "**/*.md" | |
pull_request: | |
branches: master | |
paths-ignore: | |
- "**/*.md" | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' # to see origin/master | |
- name: Configure Git | |
run: | # not zipkinci as this is for testing | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.12.1 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Run chart-testing (install) | |
run: ct install |