Skip to content

Commit 8b11c90

Browse files
authored
Merge pull request #64 from InditexTech/fix/remove-unused-sonarcloud
chore: remove unused sonarcloud
2 parents e90ae08 + efb16b6 commit 8b11c90

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

.github/workflows/sonar-cloud-analysis.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Sonar Cloud Analysis
1+
name: Tests
2+
23
permissions:
34
contents: read
45

56
concurrency:
6-
group: sonarcloud-${{ github.ref }}
7+
group: tests-${{ github.ref }}
78
cancel-in-progress: true
89

910
on:
@@ -17,7 +18,7 @@ on:
1718

1819
jobs:
1920
unit-tests:
20-
name: SonarCloud / Unit Tests
21+
name: Tests
2122
timeout-minutes: 30
2223
if: ${{ ((github.event.pull_request.merged == true && github.base_ref == 'master') ||
2324
(github.event_name == 'workflow_dispatch' ||
@@ -53,31 +54,3 @@ jobs:
5354
TEST_THREAD_ID: ${{ vars.TEST_THREAD_ID }}
5455
TEST_MESSAGE_ID: ${{ vars.TEST_MESSAGE_ID }}
5556
TEST_USER_NAME: ${{ vars.TEST_USER_NAME }}
56-
57-
- name: Store project information
58-
shell: bash
59-
id: version
60-
run: |
61-
VERSION=$(uv run pyproject-info project.version | tr -d '"'); echo "app-version=$VERSION" >> "$GITHUB_OUTPUT"
62-
NAME=$(uv run pyproject-info project.name | tr -d '"'); echo "app-name=$NAME" >> "$GITHUB_OUTPUT"
63-
echo "github-repository=$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)" >> "$GITHUB_OUTPUT"
64-
65-
- name: SonarCloud / Run SonarCloud action
66-
uses: SonarSource/sonarqube-scan-action@aa494459d7c39c106cc77b166de8b4250a32bb97 # v5
67-
if: ${{ env.IS_INDITEXTECH_REPO == 'false' }}
68-
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
71-
with:
72-
projectBaseDir: .
73-
args: >
74-
-Dsonar.organization=inditextech
75-
-Dsonar.projectKey=InditexTech_${{ steps.version.outputs.github-repository }}
76-
-Dsonar.projectName=${{ steps.version.outputs.app-name }}
77-
-Dsonar.projectVersion=${{ steps.version.outputs.app-version }}
78-
-Dsonar.branch.name=${{ github.base_ref || github.ref_name }}
79-
-Dsonar.host.url="https://sonarcloud.io/"
80-
-Dsonar.verbose=true
81-
-Dsonar.token=${SONAR_TOKEN}
82-
-Dsonar.python.version=3.10
83-
-Dsonar.python.coverage.reportPaths=coverage*.xml

0 commit comments

Comments
 (0)