Skip to content

feat: update readmes, create CONTRIBUTING.md #399

feat: update readmes, create CONTRIBUTING.md

feat: update readmes, create CONTRIBUTING.md #399

Workflow file for this run

---
name: run unit tests
on:
pull_request: {}
push:
branches: [main]
tags: ['*']
jobs:
unit-tests:
permissions:
contents: write
id-token: write
runs-on:
- ubuntu-latest
steps:
- name: Checkout Commit
id: checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Helm
uses: azure/setup-helm@29960d0f5f19214b88e1d9ba750a9914ab0f1a2f #v4.0.0
- name: Setup Python
uses: actions/setup-python@v3
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install helm-docs
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release download --repo norwoodj/helm-docs v1.14.2 --pattern 'helm-docs_*_Linux_x86_64.tar.gz' --output /tmp/helm-docs.tar.gz
tar -xzf /tmp/helm-docs.tar.gz --directory /usr/local/bin helm-docs
chmod +x /usr/local/bin/helm-docs
rm /tmp/helm-docs.tar.gz
shell: bash
- name: Install Helm unittest
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git --version=v1.0.3 --verify=false
shell: bash
- name: Update dependencies
run: make update-dependencies
shell: bash
- name: Run pre-commit
run: SKIP=helm-unittest uvx pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash
- name: Run unit tests
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
uv run --directory ./scripts chartkit affected --base origin/${{ github.base_ref }} \
| uv run --directory ./scripts chartkit unittest
else
make unit-tests
fi
shell: bash