|  | 
| 1 | 1 | name: Laravel App | 
| 2 | 2 | 
 | 
| 3 | 3 | on: | 
| 4 |  | -    push: | 
| 5 |  | -        branches: | 
| 6 |  | -            - master | 
| 7 |  | -            - develop | 
| 8 |  | -    pull_request: | 
| 9 |  | -        branches: | 
| 10 |  | -            - master | 
| 11 |  | -            - develop | 
| 12 |  | -    release: | 
| 13 |  | -        types: [published] | 
|  | 4 | +  push: | 
|  | 5 | +    branches: | 
|  | 6 | +      - master | 
|  | 7 | +      - develop | 
|  | 8 | +  pull_request: | 
|  | 9 | +    branches: | 
|  | 10 | +      - master | 
|  | 11 | +      - develop | 
|  | 12 | +  release: | 
|  | 13 | +    types: [ published ] | 
| 14 | 14 | 
 | 
| 15 | 15 | jobs: | 
| 16 |  | -    build: | 
| 17 |  | -        runs-on: ubuntu-latest | 
| 18 |  | -        steps: | 
| 19 |  | -            - uses: actions/checkout@v4 | 
| 20 |  | -            - name: Build the docker images | 
| 21 |  | -              run: make build-test | 
| 22 |  | -            - name: Start the docker images | 
| 23 |  | -              run: make start-test | 
| 24 |  | -            - name: Check running containers | 
| 25 |  | -              run: docker ps -a | 
| 26 |  | -            - name: Wait for database connection | 
| 27 |  | -              run: make wait-for-db | 
| 28 |  | -            - name: Run migrations | 
| 29 |  | -              run: make drop-migrate | 
| 30 |  | -            - name: Run seeds | 
| 31 |  | -              run: make seed | 
| 32 |  | -            - name: Show framework version and additional info, php & composer version | 
| 33 |  | -              run: make info | 
| 34 |  | -            - name: Run test suite | 
| 35 |  | -              run: make phpunit | 
| 36 |  | -            - name: Archive coverage data for Qodana | 
| 37 |  | -              uses: actions/upload-artifact@v4 | 
| 38 |  | -              with: | 
| 39 |  | -                  name: php-coverage-data | 
| 40 |  | -                  path: reports/clover.xml | 
| 41 |  | -            - name: Checks for security vulnerability advisories for installed packages | 
| 42 |  | -              run: make composer-audit | 
| 43 |  | -            - name: Run coding standard | 
| 44 |  | -              run: make ecs | 
| 45 |  | -            - name: Run codeSniffer | 
| 46 |  | -              run: make phpcs | 
| 47 |  | -            - name: Run PHPStan | 
| 48 |  | -              run: make phpstan | 
| 49 |  | -            - name: Run PHPInsights | 
| 50 |  | -              run: make phpinsights | 
| 51 |  | -            - name: Run php mess detector | 
| 52 |  | -              run: make phpmd | 
| 53 |  | -            - name: Run php copy paste detector | 
| 54 |  | -              run: make phpcpd | 
| 55 |  | -            - name: Stop the docker images | 
| 56 |  | -              run: make stop-test | 
|  | 16 | +  build: | 
|  | 17 | +    runs-on: ubuntu-latest | 
|  | 18 | +    steps: | 
|  | 19 | +      - uses: actions/checkout@v4 | 
|  | 20 | +      - name: Build the docker images | 
|  | 21 | +        run: make build-test | 
|  | 22 | +      - name: Start the docker images | 
|  | 23 | +        run: make start-test | 
|  | 24 | +      - name: Check running containers | 
|  | 25 | +        run: docker ps -a | 
|  | 26 | +      - name: Wait for database connection | 
|  | 27 | +        run: make wait-for-db | 
|  | 28 | +      - name: Run migrations | 
|  | 29 | +        run: make drop-migrate | 
|  | 30 | +      - name: Run seeds | 
|  | 31 | +        run: make seed | 
|  | 32 | +      - name: Show framework version and additional info, php & composer version | 
|  | 33 | +        run: make info | 
|  | 34 | +      - name: Run test suite | 
|  | 35 | +        run: make phpunit | 
|  | 36 | +      - name: Archive coverage data for Qodana | 
|  | 37 | +        uses: actions/upload-artifact@v4 | 
|  | 38 | +        with: | 
|  | 39 | +          name: php-coverage-data | 
|  | 40 | +          path: reports/clover.xml | 
|  | 41 | +      - name: Checks for security vulnerability advisories for installed packages | 
|  | 42 | +        run: make composer-audit | 
|  | 43 | +      - name: Run coding standard | 
|  | 44 | +        run: make ecs | 
|  | 45 | +      - name: Run codeSniffer | 
|  | 46 | +        run: make phpcs | 
|  | 47 | +      - name: Run PHPStan | 
|  | 48 | +        run: make phpstan | 
|  | 49 | +      - name: Run PHPInsights | 
|  | 50 | +        run: make phpinsights | 
|  | 51 | +      - name: Run php mess detector | 
|  | 52 | +        run: make phpmd | 
|  | 53 | +      - name: Run php copy paste detector | 
|  | 54 | +        run: make phpcpd | 
|  | 55 | +      - name: Stop the docker images | 
|  | 56 | +        run: make stop-test | 
|  | 57 | + | 
|  | 58 | +  build-staging: | 
|  | 59 | +    needs: build | 
|  | 60 | +    runs-on: ubuntu-latest | 
|  | 61 | +    steps: | 
|  | 62 | +      - uses: actions/checkout@v4 | 
|  | 63 | +      - name: Build the staging docker images | 
|  | 64 | +        run: make build-staging | 
|  | 65 | +      - name: Start the staging docker images | 
|  | 66 | +        run: make start-staging | 
|  | 67 | +      - name: Check running staging containers | 
|  | 68 | +        run: docker ps -a | 
|  | 69 | +      - name: Wait for database connection | 
|  | 70 | +        run: make wait-for-db | 
|  | 71 | +      - name: Run migrations | 
|  | 72 | +        run: make migrate-no-test | 
|  | 73 | +      - name: Set key for staging application | 
|  | 74 | +        run: make key-generate | 
|  | 75 | +      - name: Show framework version and additional info, php & composer version | 
|  | 76 | +        run: make info | 
|  | 77 | +      - name: Stop the staging docker images | 
|  | 78 | +        run: make stop-staging | 
| 57 | 79 | 
 | 
| 58 | 80 | # Currently local Qodana report differ from CI Qodana report due to some issues https://youtrack.jetbrains.com/issue/QD-7379 | 
| 59 | 81 | #    qodana: | 
|  | 
0 commit comments