Skip to content

Merge pull request #26 from TestingOrgCS/christosservos-patch-15 #56

Merge pull request #26 from TestingOrgCS/christosservos-patch-15

Merge pull request #26 from TestingOrgCS/christosservos-patch-15 #56

Workflow file for this run

name: sonarcloud
on:
push:
branches:
- master
- main
- testMAIN
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@v3
# with:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: EXPORT PK
run: |
echo "PROJECTKEY=${{ github.repository_owner}}_$(echo "REPOSITORY_NAME=${github.repository#*/}"" >> $GITHUB_ENV
- name: ECHO PK -- troubleshooting step
run: |
echo $PROJECTKEY
echo $PWD
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=christosservos
-Dsonar.projectKey=${{ env.PROJECTKEY }}
# -Dsonar.tests=Tests/
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}