Skip to content

Commit

Permalink
webapp and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli committed Oct 31, 2024
1 parent d883f0a commit 8109455
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,6 @@ jobs:
cache: maven
- name: Run the Maven verify phase
run: mvn --batch-mode --update-snapshots verify
- name: SonarCloud scan for PR
uses: sonarsource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: backend
args: |
-Dsonar.pullrequest.base=${{ github.base_ref }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
- name: SonarCloud scan for Push
uses: sonarsource/sonarcloud-github-action@383f7e52eae3ab0510c3cb0e7d9d150bbaeab838 # v3
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: backend
args: |
-Dsonar.branch.name=${{ github.head_ref }}
- name: Login to GitHub Container Registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
Expand Down
16 changes: 16 additions & 0 deletions das_client/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sonar.projectKey=schweizerischebundesbahnen_DAS_mobile
sonar.organization=schweizerischebundesbahnen
sonar.host.url=https://sonarcloud.io

# --- optional properties ---

# defaults to project key
sonar.projectName=DAS/mobile
# defaults to 'not provided'
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=lib

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
sonar.projectKey=schweizerischebundesbahnen_DAS_sfera-mock
sonar.projectKey=schweizerischebundesbahnen_DAS_webapp
sonar.organization=schweizerischebundesbahnen
sonar.host.url=https://sonarcloud.io

# --- optional properties ---

# defaults to project key
sonar.projectName=DAS/sfera-mock
sonar.projectName=DAS/webapp
# defaults to 'not provided'
#sonar.projectVersion=1.0

Expand Down

0 comments on commit 8109455

Please sign in to comment.