|
| 1 | +name: E2E-base |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + - release-* |
| 8 | + pull_request: { } |
| 9 | + workflow_dispatch: { } |
| 10 | + |
| 11 | +# Declare default permissions as read only. |
| 12 | +permissions: read-all |
| 13 | + |
| 14 | +env: |
| 15 | + # Common versions |
| 16 | + GO_VERSION: '1.22' |
| 17 | + KIND_VERSION: 'v0.18.0' |
| 18 | + KIND_VERSION_FOR_HIGHER: 'v0.22.0' |
| 19 | + KIND_CLUSTER_NAME: 'ci-testing' |
| 20 | +# todo: add kruise e2e here |
| 21 | +jobs: |
| 22 | + # 1.27- |
| 23 | + install-for-lower: |
| 24 | + runs-on: ubuntu-20.04 |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + kind-version: [ v1.18.20, v1.20.15, v1.24.6, v1.26.3 ] |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 30 | + with: |
| 31 | + submodules: true |
| 32 | + - name: Setup Kind Cluster ${{ matrix.kind-version }} |
| 33 | + uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 |
| 34 | + with: |
| 35 | + node_image: kindest/node:${{ matrix.kind-version }} |
| 36 | + cluster_name: ${{ env.KIND_CLUSTER_NAME }} |
| 37 | + config: ./test/kind-conf.yaml |
| 38 | + version: ${{ env.KIND_VERSION }} |
| 39 | + - name: Install Kruise |
| 40 | + run: | |
| 41 | + make install-kruise-from-local |
| 42 | + - name: install Kruise state metrics |
| 43 | + run: | |
| 44 | + make install-kruise-state-metrics-from-local |
| 45 | + - name: install Kruise rollout |
| 46 | + if: ${{ ! startsWith(matrix.kind-version, 'v1.18') }} |
| 47 | + run: | |
| 48 | + make install-kruise-rollout-from-local |
| 49 | + - name: install Kruise game |
| 50 | + run: | |
| 51 | + make install-kruise-game-from-local |
| 52 | +
|
| 53 | + # 1.27+ |
| 54 | + install-for-higher: |
| 55 | + runs-on: ubuntu-20.04 |
| 56 | + strategy: |
| 57 | + matrix: |
| 58 | + kind-version: [ v1.28.7, v1.30.8 ] |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 61 | + with: |
| 62 | + submodules: true |
| 63 | + - name: Setup Kind Cluster ${{ matrix.kind-version }} |
| 64 | + uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 |
| 65 | + with: |
| 66 | + node_image: kindest/node:${{ matrix.kind-version }} |
| 67 | + cluster_name: ${{ env.KIND_CLUSTER_NAME }} |
| 68 | + config: ./test/kind-conf-with-vpa.yaml |
| 69 | + version: ${{ env.KIND_VERSION_FOR_HIGHER }} |
| 70 | + - name: Install Kruise |
| 71 | + run: | |
| 72 | + make install-kruise-from-local |
| 73 | + - name: install Kruise state metrics |
| 74 | + run: | |
| 75 | + make install-kruise-state-metrics-from-local |
| 76 | + - name: install Kruise rollout |
| 77 | + run: | |
| 78 | + make install-kruise-rollout-from-local |
| 79 | + - name: install Kruise game |
| 80 | + run: | |
| 81 | + make install-kruise-game-from-local |
0 commit comments