diff --git a/.gitea/workflows/sonarqube_scans.yml b/.gitea/workflows/sonarqube_scans.yml index f27911f..1095b57 100644 --- a/.gitea/workflows/sonarqube_scans.yml +++ b/.gitea/workflows/sonarqube_scans.yml @@ -1,24 +1,14 @@ -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened] +name: CI + +on: [push] -name: SonarQube Scan jobs: - sonarqube: - name: SonarQube Trigger + build-test: runs-on: ubuntu-latest + steps: - - name: Checking out - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: SonarQube Scan - uses: https://code.caldwell.digital/tools/sonarqube-action@v0.0.3 - with: - host: "https://qube.caldwell.digital" - login: ${{ secrets.SONARQUBE_TOKEN }} - projectName: "torsearch" - projectBaseDir: "./src" + - uses: actions/checkout@v3 + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + - uses: php-actions/composer@v6 + - run: echo "Composer dependencies have been installed" + - run: vendor/bin/phpunit