feat(nvml-mock): simulate NVSwitch topology and nvidia-fabricmanager #113
Workflow file for this run
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: helm | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'deployments/nvml-mock/helm/**' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'deployments/nvml-mock/helm/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CHART_NAME: nvml-mock | |
| CHART_DIR: deployments/nvml-mock/helm | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f # v2.8.0 | |
| - name: Run chart-testing (lint) | |
| run: | | |
| ct lint \ | |
| --target-branch ${{ github.event.repository.default_branch }} \ | |
| --all \ | |
| --chart-dirs ${{ env.CHART_DIR }} \ | |
| --validate-maintainers=false | |
| unittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5 | |
| - name: Install helm-unittest plugin | |
| run: | | |
| echo "Installing helm-unittest plugin..." | |
| helm plugin install https://github.com/helm-unittest/helm-unittest.git --verify=false --version v1.0.3 # 6f82a998e0b5461762ca959f87f5dd344af5e4eb | |
| - name: Run helm unittest | |
| run: helm unittest ${{ env.CHART_DIR }}/${{ env.CHART_NAME }} |