traefik/.github/workflows/test-conformance.yaml

43 lines
882 B
YAML
Raw Normal View History

name: Test K8s Gateway API conformance
on:
pull_request:
branches:
- '*'
paths:
2024-01-22 15:04:05 +00:00
- 'pkg/provider/kubernetes/gateway/**'
- 'integration/k8s_conformance_test.go'
env:
GO_VERSION: '1.21'
CGO_ENABLED: 0
jobs:
test-conformance:
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Avoid generating webui
run: touch webui/static/index.html
- name: Build binary
run: make binary
2024-01-23 10:04:05 +00:00
- name: Setcap
run: |
sudo setcap 'cap_net_bind_service=+ep' dist/linux/amd64/traefik
- name: K8s Gateway API conformance test
2024-01-23 10:04:05 +00:00
run: make test-gateway-api-conformance-ci