build(deps): update kubernetes to v0.36.0 #4621
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: | |
| workflow_call: | |
| push: | |
| pull_request: | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| - uses: ./.github/actions/free-up-disk-space | |
| - run: make test | |
| - name: Upload unit-tests coverage to Codecov | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| name: unit-tests | |
| directory: coverage | |
| flags: unit-tests | |
| verbose: true | |
| token: ${{ secrets.CODECOV_REPO_TOKEN }} | |
| helm-unittest: | |
| name: Helm unittest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| # Disable plugin verification until the following issue is addressed https://github.com/helm-unittest/helm-unittest/issues/777 | |
| - name: Install Helm-unittest | |
| run: helm plugin install https://github.com/helm-unittest/helm-unittest --verify=false | |
| - run: make helm-unittest | |
| golangci: | |
| name: Golangci-lint | |
| runs-on: ubuntu-latest | |
| env: | |
| # Needed by trivy > 0.67.x | |
| GOEXPERIMENT: "jsonv2" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| with: | |
| version: v2.11.4 | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Discover latest version of commitlint | |
| id: discover-commitlint-version | |
| run: | | |
| latest_version=$(curl -s https://api.github.com/repos/conventional-changelog/commitlint/releases/latest | jq -r '.tag_name') | |
| echo "version=$latest_version" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Cache commitlint | |
| id: cache-commitlint | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: | | |
| node_modules | |
| package.json | |
| package-lock.json | |
| key: ${{ runner.os }}-commitlint-${{ steps.discover-commitlint-version.outputs.version }} | |
| - name: Install commitlint | |
| if: steps.cache-commitlint.outputs.cache-hit != 'true' | |
| run: npm install -D @commitlint/cli @commitlint/config-conventional | |
| - name: Print versions | |
| run: | | |
| git --version | |
| node --version | |
| npm --version | |
| npx commitlint --version | |
| - name: Validate PR commits with commitlint | |
| run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
| verify-generated-code-changes: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Verify generated code changes | |
| run: ./hack/check-for-auto-generated-changes.sh |