fix: enforce maxConcurrentPRs as an open-PR cap, not per-cycle #271
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| env: | |
| GO_VERSION: "1.26" | |
| GOLANGCI_LINT_VERSION: "v2.8.0" | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: ${{ env.GOLANGCI_LINT_VERSION }} | |
| args: --timeout=5m | |
| - name: Hadolint | |
| uses: hadolint/hadolint-action@v3.3.0 | |
| with: | |
| dockerfile: Dockerfile | |
| - name: yamllint | |
| uses: ibiqlik/action-yamllint@v3 | |
| with: | |
| file_or_dir: | | |
| deploy/helm/zelyo-operator/Chart.yaml | |
| deploy/helm/zelyo-operator/values.yaml | |
| deploy/helm/zelyo-policies/Chart.yaml | |
| deploy/helm/zelyo-policies/values.yaml | |
| .github/workflows/ | |
| config_data: | | |
| extends: default | |
| rules: | |
| line-length: | |
| max: 200 | |
| truthy: | |
| check-keys: false | |
| comments-indentation: disable | |
| document-start: disable | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Run tests | |
| run: make test | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| file: cover.out | |
| fail_ci_if_error: false | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Build binary | |
| run: make build | |
| - name: Build Docker image | |
| run: make docker-build IMG=ghcr.io/zelyo-ai/zelyo-operator:ci-${{ github.sha }} | |
| helm-lint: | |
| name: Helm Lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| chart: | |
| - deploy/helm/zelyo-operator | |
| - deploy/helm/zelyo-policies | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v5 | |
| with: | |
| version: v3.16.0 | |
| - name: Helm lint | |
| run: helm lint ${{ matrix.chart }}/ | |
| - name: Helm template | |
| run: helm template test-release ${{ matrix.chart }}/ --debug |