From e7b0395289694a43f5a6cfa77659fd34a724f1b4 Mon Sep 17 00:00:00 2001 From: bitliu Date: Thu, 7 Sep 2023 20:03:53 +0800 Subject: [PATCH] :art: Update Signed-off-by: bitliu --- .../workflows/experimental_conformance.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/experimental_conformance.yaml diff --git a/.github/workflows/experimental_conformance.yaml b/.github/workflows/experimental_conformance.yaml new file mode 100644 index 000000000000..ac4f881d326f --- /dev/null +++ b/.github/workflows/experimental_conformance.yaml @@ -0,0 +1,54 @@ +name: Experimental Conformance Test +on: + push: + paths: + - 'charts/gateway-helm/crds/gatewayapi-crds.yaml' + pull_request: + paths: + - 'charts/gateway-helm/crds/gatewayapi-crds.yaml' + + conformance-test: + runs-on: ubuntu-latest + needs: [build] + strategy: + matrix: + version: [ v1.26.6, v1.27.3, v1.28.0 ] + steps: + - uses: actions/checkout@v3 + - uses: ./tools/github-actions/setup-deps + + - name: Download EG Binaries + uses: actions/download-artifact@v3 + with: + name: envoy-gateway + path: bin/ + + - name: Give Privileges To EG Binaries + run: | + chmod +x bin/linux/amd64/envoy-gateway + chmod +x bin/linux/arm64/envoy-gateway + + # conformance + - name: Run Conformance Tests + env: + CONFORMANCE_REPORT_PATH: conformance-report-k8s-${{ matrix.version }}.yaml + KIND_NODE_TAG: ${{ matrix.version }} + IMAGE_PULL_POLICY: IfNotPresent + run: make experimental-conformance + + - name: Upload Conformance Report + uses: actions/upload-artifact@v3 + with: + name: conformance-report-k8s-${{ matrix.version }} + path: ./test/conformance/conformance-report-k8s-${{ matrix.version }}.yaml + + - name: Comment Conformance Report + uses: actions/github-script@v6 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '👋 Thanks for reporting!' + })