Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .github/workflows/presubmit.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: e2e-test
name: Validate code in the merge queue with e2e-test
permissions:
id-token: write
contents: read
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
merge_group:
jobs:
e2e-test:
validate:
runs-on: ubuntu-latest
# Prevent concurrent execution as we only have one cluster at the moment.
concurrency:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/validate-merge-queue.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/validate-pull-request-golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Validate pull request with golangci-lint before putting into queue
permissions:
id-token: write
contents: read
on:
pull_request:
jobs:
validate:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sed -En 's/^go[[:space:]]+([[:digit:].]+)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.63.4
args: --verbose --timeout 30m
43 changes: 43 additions & 0 deletions .github/workflows/validate-pull-request-presubmit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Validate pull request with presubmit before putting into queue
on:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
k8sVersion: ["1.31.1"]
env:
K8S_VERSION: ${{ matrix.k8sVersion }}
steps:
- uses: actions/checkout@v3
- run: sed -En 's/^go[[:space:]]+([[:digit:].]+)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r requirements.txt
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/go/bin/
~/.kubebuilder/bin
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
- run: go install github.com/golang/mock/mockgen@v1.6.0
- run: go install sigs.k8s.io/kustomize/kustomize/v5@v5.6.0
- run: go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20220421205612-c162794a9b12
- run: go install github.com/mattn/goveralls@b031368
- run: make manifest
- run: make vet
- run: make test
- run: make docs
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github
6 changes: 0 additions & 6 deletions .github/workflows/validate-pull-request.yaml

This file was deleted.