Skip to content

Commit

Permalink
sonarqube test
Browse files Browse the repository at this point in the history
  • Loading branch information
rostilos committed May 27, 2024
1 parent 8af1512 commit 7cde1f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
unzip sonar-scanner.zip -d /opt/
export PATH=/opt/sonar-scanner-4.6.2.2472-linux/bin:$PATH
- name: Fetch remote branches
run: git fetch origin

- name: Identify modified files
id: modified_files
run: |
git diff --name-only HEAD...origin/${{ github.ref }} | tr '\n' ','
- uses: jitterbit/get-changed-files@v1
id: diff
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run SonarQube analysis
env:
Expand All @@ -43,7 +41,7 @@ jobs:
/opt/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner \
-Dsonar.projectKey=my_project_key \
-Dsonar.sources=. \
-Dsonar.inclusions=${{ steps.modified_files.outputs.stdout }}
-Dsonar.inclusions=${{ steps.diff.outputs.modified }}
fi
# - uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DiInfoCommand extends Command
/**
* input name
*/
const CLASS_NAME = 'class';
const CLASS_NAME = 'class'

/**
* @var Information
Expand Down

0 comments on commit 7cde1f7

Please sign in to comment.