Skip to content

Commit

Permalink
added a space for test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunagatov committed Oct 20, 2023
1 parent 3bd33a8 commit 0a56e4a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci-cd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,24 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Run unit tests
run: mvn test -Pdev --file pom.xml

- name: Build with Maven
run: mvn -B package -Pdev --file pom.xml

# Static code analysis with SonarScanner

- name: Install SonarScanner
run: |
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
unzip sonar-scanner-cli-4.7.0.2747-linux.zip
export SONAR_SCANNER_HOME=`pwd`/sonar-scanner-4.7.0.2747-linux
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- name: Run SonarScanner
run: |
sonar-scanner \
-Dsonar.projectKey=your-project-key \
-Dsonar.sources=. \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=your-sonarcloud-token

0 comments on commit 0a56e4a

Please sign in to comment.