瀏覽代碼

ci: add optional v2 e2e job

Moritz Johner 3 月之前
父節點
當前提交
b6dd163d83
共有 1 個文件被更改,包括 46 次插入0 次删除
  1. 46 0
      .github/workflows/e2e.yml

+ 46 - 0
.github/workflows/e2e.yml

@@ -73,6 +73,52 @@ jobs:
 
     - uses: ./.github/actions/e2e
 
+  integration-v2-optional:
+    runs-on: ubuntu-latest
+    continue-on-error: true
+    timeout-minutes: 90
+    permissions:
+      contents: read
+    if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor !='dependabot[bot]'
+    steps:
+    - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
+      with:
+        egress-policy: audit
+
+    - name: Branch based PR checkout
+      uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+
+    - name: Fetch History
+      run: git fetch --prune --unshallow
+
+    - name: Setup Go
+      uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
+      with:
+        go-version-file: go.mod
+
+    - name: Setup kind
+      uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
+      with:
+        version: ${{ env.KIND_VERSION }}
+        wait: 10m
+        image: ${{ env.KIND_IMAGE }}
+        name: external-secrets
+
+    - name: Setup Docker Buildx
+      uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
+      with:
+        install: true
+
+    - name: Install Ginkgo CLI
+      run: |
+        make -C e2e install-ginkgo
+        echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
+
+    - name: Run V2 e2e Tests (optional)
+      env:
+        DOCKER_BUILD_ARGS: --load
+      run: make test.e2e.v2
+
   # Repo owner has commented /ok-to-test on a (fork-based) pull request
   integration-fork:
     runs-on: ubuntu-latest