Bump golang from 1.22 to 1.23 #56
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
name: Lint and test helmchart | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.14.3 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
shell: bash | |
# If there are changes, put a comma separated list of `chart/<chart-name>` as output | |
run: | | |
changed=$(ct list-changed --config ct.yml) | |
if [[ -n "$changed" ]]; then | |
changed_charts=$(echo $changed | tr ' ' ',') | |
echo "changed_charts=$changed_charts" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Lint chart | |
if: ${{ steps.list-changed.outputs.changed_charts != null }} | |
run: ct lint --config ct.yml | |
- name: Create Kubernetes Kind cluster | |
uses: helm/[email protected] | |
if: ${{ steps.list-changed.outputs.changed_charts != null }} | |
# Run chart tests for changed charts, excluding svai-system | |
- name: Run chart-testing (install) | |
run: ct install --config ct.yml | |
if: ${{ steps.list-changed.outputs.changed_charts != null }} |