diff --git a/.github/actions/create-single-cluster/action.yaml b/.github/actions/create-single-cluster/action.yaml new file mode 100644 index 000000000..847b2e85d --- /dev/null +++ b/.github/actions/create-single-cluster/action.yaml @@ -0,0 +1,16 @@ +name: 'Create single cluster' +description: 'Action for creating single cluster' + +runs: + using: 'composite' + steps: + - name: create single cluster + uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 + with: + cluster-name: "k3dCluster" + args: >- + --agents 1 + --image rancher/k3s:v1.29.3-k3s1 + --port 80:80@loadbalancer + --port 443:443@loadbalancer + --wait diff --git a/.github/workflows/operator-verify.yaml b/.github/workflows/operator-verify.yaml index c1e608124..c605a20eb 100644 --- a/.github/workflows/operator-verify.yaml +++ b/.github/workflows/operator-verify.yaml @@ -41,16 +41,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-go - - name: create single cluster - uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 - with: - cluster-name: "k3dCluster" - args: >- - --agents 1 - --image rancher/k3s:v1.29.3-k3s1 - --port 80:80@loadbalancer - --port 443:443@loadbalancer - --wait + - uses: ./.github/actions/create-single-cluster - name: run integration test (pre) if: github.event_name == 'pull_request' run: | @@ -75,16 +66,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-go - - name: create single cluster - uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 - with: - cluster-name: "k3dCluster" - args: >- - --agents 1 - --image rancher/k3s:v1.29.3-k3s1 - --port 80:80@loadbalancer - --port 443:443@loadbalancer - --wait + - uses: ./.github/actions/create-single-cluster - name: upgrade test run: | make -C components/operator deploy-release diff --git a/.github/workflows/serverless-verify.yaml b/.github/workflows/serverless-verify.yaml index 089dbd621..b251d1298 100644 --- a/.github/workflows/serverless-verify.yaml +++ b/.github/workflows/serverless-verify.yaml @@ -43,16 +43,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-go - - name: create single cluster - uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 - with: - cluster-name: "k3dCluster" - args: >- - --agents 1 - --image rancher/k3s:v1.29.3-k3s1 - --port 80:80@loadbalancer - --port 443:443@loadbalancer - --wait + - uses: ./.github/actions/create-single-cluster - name: run integration test (pre) if: github.event_name == 'pull_request' run: | @@ -76,16 +67,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-go - - name: create single cluster - uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 - with: - cluster-name: "k3dCluster" - args: >- - --agents 1 - --image rancher/k3s:v1.29.3-k3s1 - --port 80:80@loadbalancer - --port 443:443@loadbalancer - --wait + - uses: ./.github/actions/create-single-cluster - name: run git auth tests run: | make install-serverless-custom-operator @@ -103,16 +85,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-go - - name: create single cluster - uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 - with: - cluster-name: "k3dCluster" - args: >- - --agents 1 - --image rancher/k3s:v1.29.3-k3s1 - --port 80:80@loadbalancer - --port 443:443@loadbalancer - --wait + - uses: ./.github/actions/create-single-cluster - name: upgrade test run: | make install-serverless-latest-release install-serverless-custom-operator