diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 1c842783e7..0000000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: 'Code - Run Sonarcloud' -on: - pull_request: - workflow_dispatch: - push: - branches: - - main -env: - DB_CONNECTION: sqlite - APP_KEY: TestTestTestTestTestTestTestTest -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup PHP with Xdebug - uses: shivammathur/setup-php@v2 - with: - php-version: '8.4' - coverage: xdebug - extensions: >- - bcmath - curl - fileinfo - iconv - intl - json - sqlite3 - mbstring - openssl - pdo - session - simplexml - sodium - tokenizer - xml - xmlwriter - - - name: Copy standard configuration - run: cp .env.testing .env - - - name: Install Composer dependencies - run: composer install --prefer-dist --no-interaction --no-progress --no-scripts - - - name: "Create database file" - run: | - touch storage/database/database.sqlite - wget -q https://github.com/firefly-iii/test-fixtures/raw/refs/heads/main/test-database.sqlite -O storage/database/database.sqlite - - - name: "Upgrades the database to the latest version" - run: | - php artisan firefly-iii:upgrade-database - chmod 600 storage/oauth-public.key - chmod 600 storage/oauth-private.key - - - name: "Integrity Database Report" - run: php artisan firefly-iii:report-integrity - - - name: "Run tests with coverage" - run: composer coverage - - - name: Fix code coverage paths - run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml - - - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@v5.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}