diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d979151542655f27392f3b640979536e0fb2f413..a279e9d0acade26271fe9b65251b97c4e12309ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,8 +4,8 @@ workflow: - if: '$CI_MERGE_REQUEST_IID' # For default branch, create a pipeline (this includes on schedules, pushes, merges, etc.). # - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - # Temporarly create Ci for every branch: - - if: '$CI_COMMIT_BRANCH' + # # Temporarly create Ci for every branch: + # - if: '$CI_COMMIT_BRANCH' # For tags, create a pipeline. - if: '$CI_COMMIT_TAG' # For stable branches, create a pipeline. @@ -13,7 +13,7 @@ workflow: # default: - image: golang:1.15 + image: golang:1.17 # Disable DIND for SAST because we need to execute a before_script in the gosec-sast job variables: @@ -22,7 +22,6 @@ variables: include: - template: Security/SAST.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml - - local: .gitlab/ci/*.gitlab-ci.yml gosec-sast: before_script: @@ -38,3 +37,11 @@ code_navigation: artifacts: reports: lsif: dump.lsif + +run_tests: + variables: + # GITLAB_TOKEN: "qRC87Xg9Wd46RhB8J8sp" + # FROM_PACKAGE: "packages/easy-coding-standard" + # TO_REPOSITORY: "https://github.com/symplify/easy-coding-standard" + script: + - make test diff --git a/pkg/git/git_test.go b/pkg/git/git_test.go index 9d57a806f96679aaed441810391f0f57899a298e..60b6919d4312cf3e7f8221416f87eb9104a69fdb 100644 --- a/pkg/git/git_test.go +++ b/pkg/git/git_test.go @@ -291,7 +291,7 @@ func TestGetRemoteURL(t *testing.T) { { name: "isInvalid", remoteAlias: "origin", - want: "profclems/glab", + want: "gitlab-org/cli", }, } for _, tt := range tests {