diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8567d2a9f0..3171afaf2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,6 @@ name: Sonarcloud CI on: - push: - branches: - - main - - develop - - 5.8-dev - pull_request: - types: [opened, synchronize, reopened] + workflow_dispatch: jobs: sonarcloud: name: SonarCloud @@ -19,4 +13,4 @@ jobs: uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml new file mode 100644 index 0000000000..ccdfda2046 --- /dev/null +++ b/.github/workflows/qodana.yml @@ -0,0 +1,29 @@ +name: Qodana +on: + workflow_dispatch: + push: + branches: + - main + - develop + pull_request: + types: [ opened, synchronize, reopened ] +jobs: + qodana: + runs-on: ubuntu-latest + name: 'Qodana Scan' + steps: + - name: Setup PHP with no coverage driver + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + coverage: none + extensions: bcmath, intl + env: + update: true + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@main + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} diff --git a/qodana.yaml b/qodana.yaml new file mode 100644 index 0000000000..558b7e394d --- /dev/null +++ b/qodana.yaml @@ -0,0 +1,4 @@ +profile: + name: qodana.starter +version: "1.0" +linter: jetbrains/qodana-php:2022.3-eap