diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82bd2135..91ab4783 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,8 @@ on: push: branches: - main + - feature/** + - bugfix/** pull_request: types: [opened, synchronize, reopened] jobs: @@ -13,6 +15,17 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: db* CODECOP Issues + run: | + export COP=4.3.0 + export VALIDATOR=4.3.0 + wget https://github.com/Trivadis/plsql-cop-cli/releases/download/v$COP/tvdcc-$COP.zip + unzip tvdcc-$COP.zip -d . + wget -P tvdcc-$COP/plugin/ https://github.com/Trivadis/plsql-cop-validators/releases/download/v$VALIDATOR/sonar-plsql-cop-custom-validators-plugin-$VALIDATOR.jar + echo $TVDCC_LIC | base64 -d > tvdcc-$COP/tvdcc.lic + tvdcc-$COP/tvdcc.sh path=docs skip=none html=false excel=false validator=com.trivadis.tvdcc.validators.TrivadisGuidelines3Plus + env: + TVDCC_LIC: ${{ secrets.TVDCC_LIC }} - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: diff --git a/sonar-project.properties b/sonar-project.properties index a6d54d1b..b5677b35 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -15,7 +15,7 @@ sonar.sources=docs #sonar.sourceEncoding=UTF-8 # File in Genric Issue Import Format produced by db* CODECOP CLI -#sonar.externalIssuesReportPaths=tvdcc_report.json +sonar.externalIssuesReportPaths=tvdcc_report.json # Change the default list of suffixes for the SonarPLSQL plugin in https://sonarcloud.io sonar.plsql.file.suffixes=md