Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small improvements in gh actions #974

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'Create single cluster'
name: 'Create k3d cluster'
description: 'Action for creating single cluster'

runs:
using: 'composite'
steps:
- name: create single cluster
- name: create k3d cluster
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0
with:
cluster-name: "k3dCluster"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/integration-tests-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/rebase
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: run test
run: |
make -C components/operator deploy
make -C tests/operator test
env:
IMG: europe-docker.pkg.dev/kyma-project/dev/serverless-operator:PR-${{ github.event.number }}
- uses: ./.github/actions/collect-cluster-info
- if: ${{ always() }}
uses: ./.github/actions/collect-cluster-info

serverless-integration-test:
if: github.event.pull_request.draft == false
Expand All @@ -31,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/rebase
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: run test
run: |
make install-serverless-custom-operator
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/integration-tests-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: run test
run: |
make -C components/operator deploy
make -C tests/operator test
env:
IMG: europe-docker.pkg.dev/kyma-project/prod/serverless-operator:${{ github.sha }}
- uses: ./.github/actions/collect-cluster-info
- if: ${{ always() }}
uses: ./.github/actions/collect-cluster-info

gardener-integration-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: run test
run: |
make install-serverless-custom-operator
Expand All @@ -66,7 +67,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: run tests
run: |
make install-serverless-custom-operator
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/upgrade-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: upgrade test
run: |
make -C components/operator deploy-release
Expand All @@ -19,14 +19,15 @@ jobs:
make -C tests/operator test
env:
IMG: europe-docker.pkg.dev/kyma-project/prod/serverless-operator:${{ github.sha }}
- uses: ./.github/actions/collect-cluster-info
- if: ${{ always() }}
uses: ./.github/actions/collect-cluster-info

serverless-upgrade-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/create-single-cluster
- uses: ./.github/actions/create-k3d-cluster
- name: upgrade test
run: |
make install-serverless-latest-release install-serverless-custom-operator
Expand Down
Loading