Merge pull request #848 from EnterpriseDB/bar-115-fix-barman-cloud-ba… #1119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SonarQube-Workflow | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
sonarQube: | |
name: SonarQube-Job | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'EnterpriseDB/barman' | |
steps: | |
- name: Checkout source repo | |
uses: actions/checkout@v2 | |
- name: Checkout GitHub Action Repo | |
uses: actions/checkout@master | |
with: | |
repository: EnterpriseDB/edb-github-actions.git | |
ref: master | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
path: .github/actions/edb-github-actions | |
- name: SonarQube Scan | |
uses: ./.github/actions/edb-github-actions/sonarqube | |
with: | |
REPO_NAME: '${{github.event.repository.name}}' | |
SONAR_PROJECT_KEY: '${{secrets.SONARQUBE_PROJECTKEY}}' | |
SONAR_URL: '${{secrets.SONARQUBE_URL}}' | |
SONAR_LOGIN: '${{secrets.SONARQUBE_LOGIN}}' | |
PULL_REQUEST_KEY: '${{github.event.number}}' | |
PULL_REQUEST_BRANCH: '${{github.head_ref}}' | |
PULL_REQUEST_BASE_BRANCH: '${{github.base_ref}}' | |
REPO_DEFAULT_BRANCH: '${{github.event.repository.default_branch}}' | |
REPO_EXCLUDE_FILES: '**/src/test/**/*,**/docs/**/*,**/build/**' |