Skip to content

Commit

Permalink
chore: Update sonar project properties (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Serdiuk authored and SergK committed Apr 16, 2024
1 parent d550020 commit 1e2e6ba
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:

check-commit-message:
runs-on: ubuntu-20.04
env:
COMMIT_MESSAGE_PATTERN: '^(feat|fix|docs|style|refactor|test|chore){1}(!)?:\s[A-Z][a-z]([\/\.\w\-\s]+)\(\#\d+\)$'
MAX_LINE_LENGTH: '80'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -30,6 +27,10 @@ jobs:
with:
pattern: '^(fix|feat|docs|style|refactor|test|chore): .+ \(#\d+\)$'
error: 'Your commit message should be in the format "type: Description (#issue)". Example: "fix: Update build (#33)"'
excludeDescription: 'true'
excludeTitle: 'true'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}

- name: Check Line Length
uses: gsactions/commit-message-checker@v2
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ KIND_CLUSTER_NAME?="tekton"
KUBE_VERSION?=1.27
KIND_CONFIG?=./hack/kind-$(KUBE_VERSION).yaml

CONTAINER_REGISTRY_URL?="repo"
CONTAINER_REGISTRY_SPACE?="edp"
E2E_IMAGE_REPOSITORY?="tekton-image"
E2E_IMAGE_TAG?="latest"

Expand Down Expand Up @@ -103,9 +105,9 @@ ${CURRENT_DIR}/.venv/bin/activate:

## Run e2e tests. Requires kind with running cluster and kuttl tool.
e2e: build
docker build --no-cache -t ${E2E_IMAGE_REPOSITORY}:${E2E_IMAGE_TAG} .
kind load --name $(KIND_CLUSTER_NAME) docker-image ${E2E_IMAGE_REPOSITORY}:${E2E_IMAGE_TAG}
E2E_IMAGE_REPOSITORY=${E2E_IMAGE_REPOSITORY} E2E_IMAGE_TAG=${E2E_IMAGE_TAG} kubectl-kuttl test
docker build --no-cache -t ${CONTAINER_REGISTRY_URL}/${CONTAINER_REGISTRY_SPACE}/${E2E_IMAGE_REPOSITORY}:${E2E_IMAGE_TAG} .
kind load --name $(KIND_CLUSTER_NAME) docker-image ${CONTAINER_REGISTRY_URL}/${CONTAINER_REGISTRY_SPACE}/${E2E_IMAGE_REPOSITORY}:${E2E_IMAGE_TAG}
E2E_IMAGE_REPOSITORY=${E2E_IMAGE_REPOSITORY} CONTAINER_REGISTRY_URL=${CONTAINER_REGISTRY_URL} CONTAINER_REGISTRY_SPACE=${CONTAINER_REGISTRY_SPACE} E2E_IMAGE_TAG=${E2E_IMAGE_TAG} kubectl-kuttl test

GOLANGCILINT = ${CURRENT_DIR}/bin/golangci-lint
.PHONY: golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ sonar.projectKey=edp-tekton
sonar.projectName=edp-tekton
sonar.go.coverage.reportPaths=coverage.out
sonar.test.inclusions=**/*_test.go
sonar.exclusions=**/charts/**,**/cmd/**,**/tests/**,**/hack/**
sonar.exclusions=*/cache/**,**/config/**,**/deploy-templates/**,**/charts/**,**/cmd/**,**/tests/**,**/hack/**
2 changes: 1 addition & 1 deletion tests/e2e/gerrit/02-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commands:
- command: |
helm install tekton-e2e ../../../charts/pipelines-library
--values ../values.yaml
--set interceptor.image.repository=${E2E_IMAGE_REPOSITORY}
--set interceptor.image.repository=${CONTAINER_REGISTRY_URL}/${CONTAINER_REGISTRY_SPACE}/${E2E_IMAGE_REPOSITORY}
--set interceptor.image.tag=${E2E_IMAGE_TAG}
--set global.dnsWildCard=example.com
--set global.gitProviders[0]=gerrit
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/github/02-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commands:
- command: |
helm install tekton-e2e ../../../charts/pipelines-library
--values ../values.yaml
--set interceptor.image.repository=${E2E_IMAGE_REPOSITORY}
--set interceptor.image.repository=${CONTAINER_REGISTRY_URL}/${CONTAINER_REGISTRY_SPACE}/${E2E_IMAGE_REPOSITORY}
--set interceptor.image.tag=${E2E_IMAGE_TAG}
--set global.dnsWildCard=example.com
--set global.gitProviders[0]=github
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/gitlab/02-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commands:
- command: |
helm install tekton-e2e ../../../charts/pipelines-library
--values ../values.yaml
--set interceptor.image.repository=${E2E_IMAGE_REPOSITORY}
--set interceptor.image.repository=${CONTAINER_REGISTRY_URL}/${CONTAINER_REGISTRY_SPACE}/${E2E_IMAGE_REPOSITORY}
--set interceptor.image.tag=${E2E_IMAGE_TAG}
--set global.dnsWildCard=example.com
--set global.gitProviders[0]=gitlab
Expand Down

0 comments on commit 1e2e6ba

Please sign in to comment.