chore: add workflow to push helm charts to mcr #242
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: CI for pull requests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| pull_request: {} | |
| workflow_dispatch: {} | |
| env: | |
| GO_VERSION: '1.26.1' | |
| jobs: | |
| check-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Check spelling with custom config file | |
| uses: crate-ci/typos@v1.44.0 | |
| with: | |
| config: ./.github/typos.toml | |
| - name: Link Checker | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: --root-dir . --verbose --no-progress '**/*.md' | |
| fail: false | |
| - name: Verify Mod | |
| run: make verify-mod | |
| - name: Verify Manifests | |
| run: make verify-manifests | |
| - name: Verify Boilerplate | |
| run: make verify-boilerplate | |
| golangci-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Lint golang code | |
| run: make lint | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: [amd64, arm64] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Run Tests | |
| run: make test | |
| - name: Build gpu-node-mocker binary | |
| run: make build ARCH=${{ matrix.arch }} | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| needs: [check-files, golangci-lint, build-and-test] | |
| strategy: | |
| matrix: | |
| arch: [amd64, arm64] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build docker image (linux/${{ matrix.arch }}) | |
| run: make docker-build ARCH=${{ matrix.arch }} |