Skip to content

[main] Update community files #3638

[main] Update community files

[main] Update community files #3638

Workflow file for this run

name: e2e
on:
pull_request:
branches: [ 'main' ]
jobs:
kind:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
k8s-version:
- v1.25.x
- v1.26.x
- v1.27.x
ingress:
- istio
- contour
env:
KO_DOCKER_REPO: kind.local
# Use a semi-random cluster suffix, but somewhat predictable
# so reruns don't just give us a completely new value.
#
# Re-enable when https://github.com/chainguard-dev/actions/pull/175 is fixed
# CLUSTER_SUFFIX: c${{ github.run_id }}.local
steps:
- name: Set up Go 1.19.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: imjasonh/setup-ko@v0.6
- name: Setup KinD
uses: chainguard-dev/actions/setup-kind@main
with:
k8s-version: ${{ matrix.k8s-version }}
kind-worker-count: 3
- uses: actions/checkout@v3
- name: test
run: |
./test/e2e-tests.sh \
--${{ matrix.ingress }} \
--run-tests \
--kind \
--skip-dump-on-failure
- uses: chainguard-dev/actions/kind-diag@main
if: ${{ failure() }}
with:
cluster-resources: nodes,namespaces,crds,gatewayclass
namespace-resources: pods,svc,king,gateway,httproute,referencegrant,tcproute,tlsroute,udproute
artifact-name: logs-${{ matrix.k8s-version}}-${{ matrix.ingress }}
- name: Post failure notice to Slack
uses: rtCamp/action-slack-notify@v2.2.0
if: ${{ failure() && github.event_name != 'pull_request' }}
env:
SLACK_ICON: http://github.com/knative.png?size=48
SLACK_USERNAME: github-actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: 'net-gateway-api'
SLACK_COLOR: '#8E1600'
MSG_MINIMAL: 'true'
SLACK_TITLE: Periodic ${{ matrix.k8s-version }} failed.
SLACK_MESSAGE: |
For detailed logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}