generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract common pull/push part in verification github actions (#963)
- Loading branch information
Showing
12 changed files
with
154 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: 'Collect cluster-info' | ||
description: 'Action for collecting cluster-info' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: collect cluster-info | ||
if: ${{ always() }} | ||
run: make -C tests/operator cluster-info | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Create release" | ||
name: create release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/pull-gitleaks.yaml → .github/workflows/gitleaks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Images verify | ||
name: images verify | ||
run-name: ${{github.event.pull_request.title}} | ||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: integration tests (pull) | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'examples/**' | ||
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | ||
|
||
jobs: | ||
operator-integration-test: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- uses: ./.github/actions/create-single-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 | ||
|
||
serverless-integration-test: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- uses: ./.github/actions/create-single-cluster | ||
- name: run test | ||
run: | | ||
make install-serverless-custom-operator | ||
make -C tests/serverless serverless-integration serverless-contract-tests | ||
make remove-serverless | ||
env: | ||
IMG: europe-docker.pkg.dev/kyma-project/dev/serverless-operator:PR-${{ github.event.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Markdown | ||
name: markdown | ||
run-name: ${{github.event.pull_request.title}} | ||
on: | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Promote serverless to release channel" | ||
name: promote to release channel | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: unit tests | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'examples/**' | ||
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | ||
|
||
jobs: | ||
operator-unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- name: run test | ||
run: make -C components/operator test | ||
|
||
serverless-unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- uses: ./.github/actions/setup-libgit2 | ||
- name: run test | ||
run: make -C components/serverless test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: upgrade tests | ||
|
||
on: | ||
push: | ||
branches: [ "main", "release-*" ] | ||
|
||
jobs: | ||
operator-upgrade-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- uses: ./.github/actions/create-single-cluster | ||
- name: upgrade test | ||
run: | | ||
make -C components/operator deploy-release | ||
make -C tests/operator test | ||
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 | ||
|
||
serverless-upgrade-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-go | ||
- uses: ./.github/actions/create-single-cluster | ||
- name: upgrade test | ||
run: | | ||
make install-serverless-latest-release install-serverless-custom-operator | ||
make -C tests/serverless serverless-integration serverless-contract-tests | ||
make remove-serverless | ||
env: | ||
IMG: europe-docker.pkg.dev/kyma-project/prod/serverless-operator:${{ github.sha }} |