Added Qodana code quality tool integration. #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Laravel App | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build the docker images | |
run: make build-test | |
- name: Start the docker images | |
run: make start-test | |
- name: Check running containers | |
run: docker ps -a | |
- name: Wait for database connection | |
run: make wait-for-db | |
- name: Run migrations | |
run: make drop-migrate | |
- name: Run seeds | |
run: make seed | |
- name: Run test suite | |
run: make phpunit | |
- name: Run PHP coding standard | |
run: make ecs | |
- name: Run PHP codeSniffer | |
run: make phpcs | |
- name: Run PHP copy/paste detector | |
run: make phpcpd | |
- name: Run PHP mess detector | |
run: make phpmd | |
- name: Run PHPStan static analysis tool | |
run: make phpstan | |
- name: Run Phpinsights PHP quality checks | |
run: make phpinsights | |
- name: Stop the docker images | |
run: make stop-test | |
qodana: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit | |
fetch-depth: 0 # a full history is required for pull request analysis | |
- name: 'Qodana Scan' | |
uses: JetBrains/[email protected] | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |