Update README.md #4
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| go-build: | |
| name: Go build (CLI) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22.x' | |
| - name: Build CLI | |
| run: go build -v ./cmd/chashma | |
| helm-lint: | |
| name: Helm lint (chart) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| - name: Add repos and update | |
| run: | | |
| helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
| helm repo add nvidia-dcgm https://nvidia.github.io/dcgm-exporter/helm-charts | |
| helm repo update | |
| - name: Build dependencies | |
| run: helm dependency update charts/chashma | |
| - name: Helm lint | |
| run: helm lint charts/chashma | |
| yamllint: | |
| name: YAML lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y yamllint | |
| - name: Lint YAML | |
| run: | | |
| yamllint -d '{extends: default, rules: {line-length: {max: 140}}}' charts/ manifests/ .github/workflows/ | |