-
Notifications
You must be signed in to change notification settings - Fork 5
89 lines (73 loc) · 2.72 KB
/
Copy pathconformance.yaml
File metadata and controls
89 lines (73 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Conformance
# ------------------------------------------------------------------------------
# Workflow Settings
# ------------------------------------------------------------------------------
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions: {}
env:
CARGO_TERM_COLOR: always
CONTAINER_ENGINE: docker
KIND_CLUSTER_NAME: praxis-conformance
PRAXIS_IMAGE: ghcr.io/praxis-proxy/praxis:0.5.2
OPERATOR_IMAGE: praxis-operator:dev
jobs:
# ---------------------------------------------------------------------------
# Gateway API conformance suite
# ---------------------------------------------------------------------------
gateway-api:
runs-on: ubuntu-24.04
timeout-minutes: 45
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Login to GHCR
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build operator image
run: docker build -t ${{ env.OPERATOR_IMAGE }} -f Containerfile .
- name: Pull praxis image
run: bash hack/retry.sh docker pull ${{ env.PRAXIS_IMAGE }}
- name: Install KIND
run: |
# --fail matters as much as the retries: without it an HTTP error
# page is written to ./kind, chmod +x succeeds, and the failure
# surfaces later as an unreadable exec format error.
bash hack/retry.sh curl --fail --location --show-error --silent \
--retry 3 --retry-all-errors --retry-delay 2 \
--output ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Setup KIND cluster
run: bash hack/setup-kind.sh
- name: Install Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: "1.24"
cache: false
- name: Conformance tests
run: bash hack/run-conformance.sh
- name: Debug cluster state
if: failure()
run: bash hack/dump-debug.sh
- name: Upload conformance report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: conformance-report
path: /tmp/conformance-report.yaml
if-no-files-found: ignore