10000 Add CRD validation tests to gh actions · kubernetes-sigs/gateway-api@b6b5faf · GitHub
[go: up one dir, main page]

Skip to content

Commit b6b5faf

Browse files
committed
Add CRD validation tests to gh actions
1 parent a65f19c commit b6b5faf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CRD Validation
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
# Remove all permissions from GITHUB_TOKEN except metadata.
8+
permissions: {}
9+
10+
jobs:
11+
golangci:
12+
name: kube-api-lint
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
# Available versions at https://raw.githubusercontent.com/kubernetes-sigs/controller-tools/HEAD/envtest-releases.yaml
18+
k8s_version: [v1.33.0, v1.32.0, v1.31.0, v1.30.3, v1.29.5]
19+
crd_channel: [standard, experimental]
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
23+
- name: Set up Go
24+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
25+
- name: Run CRD Validation tests
26+
env:
27+
K8S_VERSION: ${{ matrix.k8s_version }}
28+
CRD_CHANNEL: ${{ matrix.crd_channel }}
29+
run: |
30+
make CEL_TEST_K8S_VERSION="${K8S_VERSION}" CEL_TEST_CRD_CHANNEL="${CRD_CHANNEL}" test.crds-validation

0 commit comments

Comments
 (0)
0