Skip to content

Commit

Permalink
split further the e2e tests
Browse files Browse the repository at this point in the history
- run bibtuckets test in provider
- all others goes to gitea and others
  • Loading branch information
chmouel committed Dec 18, 2024
1 parent 556fa62 commit 5305656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kind-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
provider: [githubgitlab, others]
provider: [providers, gitea_others]
env:
KO_DOCKER_REPO: localhost:5000
CONTROLLER_DOMAIN_URL: controller.paac-127-0-0-1.nip.io
Expand Down
6 changes: 3 additions & 3 deletions hack/gh-workflow-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ create_second_github_app_controller_on_ghe() {
get_tests() {
target=$1
mapfile -t testfiles < <(find test/ -maxdepth 1 -name '*.go')
ghglabre="Github|Gitlab"
if [[ ${target} == "githubgitlab" ]]; then
ghglabre="Github|Gitlab|Bitbucket"
if [[ ${target} == "providers" ]]; then
grep -hioP "^func Test.*(${ghglabre})(\w+)\(" "${testfiles[@]}" | sed -e 's/func[ ]*//' -e 's/($//'
elif [[ ${target} == "others" ]]; then
elif [[ ${target} == "gitea_others" ]]; then
grep -hioP '^func Test(\w+)\(' "${testfiles[@]}" | grep -iPv "(${ghglabre})" | sed -e 's/func[ ]*//' -e 's/($//'
else
echo "Invalid target: ${target}"
Expand Down

0 comments on commit 5305656

Please sign in to comment.