mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Run sonar scan on pull requests.
This commit is contained in:
parent
fc18810ba8
commit
e3d20afc6a
9
.github/workflows/sonar-scan.yml
vendored
9
.github/workflows/sonar-scan.yml
vendored
|
@ -3,7 +3,7 @@ name: sonar-scan
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
|
@ -37,13 +37,10 @@ jobs:
|
|||
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
|
||||
echo "$HOME/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH
|
||||
- name: Install dependencies and prepare build
|
||||
run: |
|
||||
.github/scripts/sonar-prepare
|
||||
run: .github/scripts/sonar-prepare
|
||||
- name: Run build-wrapper
|
||||
run: |
|
||||
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build
|
||||
run: 'build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} .github/scripts/sonar-build'
|
||||
- name: Run sonar-scanner
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user