From 72419fbe59eec5a699a18716f31eab05bba91693 Mon Sep 17 00:00:00 2001 From: Chunlin Yang Date: Thu, 16 May 2024 14:47:30 +0800 Subject: [PATCH] Enable e2e test in github action (#86) Signed-off-by: clyang82 --- .github/workflows/e2e.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 00000000..d0685da9 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,37 @@ +name: E2E Test + +on: + workflow_dispatch: {} + pull_request: + branches: + - main + push: + branches: + - main + +env: + GO_VERSION: '1.21' + GO_REQUIRED_MIN_VERSION: '' + +permissions: + contents: read + +jobs: + e2e: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - name: Setup kind + uses: engineerd/setup-kind@v0.5.0 + with: + version: v0.17.0 + - name: install ginkgo + run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.15.0 + - name: Test E2E + run: | + make e2e-test