|
1 | 1 | name: Symfony Rest API
|
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: Set Elastic data folder rights |
21 |
| - run: chmod 777 var/elasticsearch-data |
22 |
| - - name: Build the docker images |
23 |
| - run: make build-test |
24 |
| - - name: Start the docker images |
25 |
| - run: make start-test |
26 |
| - - name: Check running containers |
27 |
| - run: docker ps -a |
28 |
| - - name: Wait for database connection |
29 |
| - run: make wait-for-db |
30 |
| - - name: Run migrations |
31 |
| - run: make drop-migrate |
32 |
| - - name: Generate keys |
33 |
| - run: make generate-jwt-keys |
34 |
| - - name: Create roles and groups |
35 |
| - run: make create-roles-groups |
36 |
| - - name: Create cron jobs |
37 |
| - run: make migrate-cron-jobs |
38 |
| - - name: Setup transports for Messenger component |
39 |
| - run: make messenger-setup-transports |
40 |
| - - name: Wait for Elastic connection |
41 |
| - run: make wait-for-elastic |
42 |
| - - name: Create or update Elastic index template |
43 |
| - run: make elastic-create-or-update-template |
44 |
| - - name: Show framework version and additional info, php & composer version |
45 |
| - run: make info |
46 |
| - - name: Run test suite |
47 |
| - run: make phpunit |
48 |
| - - name: Archive coverage data for Qodana |
49 |
| - uses: actions/upload-artifact@v4 |
50 |
| - with: |
51 |
| - name: php-coverage-data |
52 |
| - path: reports/clover.xml |
53 |
| - - name: Checks for security vulnerability advisories for installed packages |
54 |
| - run: make composer-audit |
55 |
| - - name: Run coding standard |
56 |
| - run: make ecs |
57 |
| - - name: Run codeSniffer |
58 |
| - run: make phpcs |
59 |
| - - name: Run PHPStan |
60 |
| - run: make phpstan |
61 |
| - - name: Run PHPInsights |
62 |
| - run: make phpinsights |
63 |
| - - name: Run php mess detector |
64 |
| - run: make phpmd |
65 |
| - - name: Run php copy paste detector |
66 |
| - run: make phpcpd |
67 |
| - - name: Stop the docker images |
68 |
| - run: make stop-test |
| 16 | + build: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + - name: Set Elastic data folder rights |
| 21 | + run: chmod 777 var/elasticsearch-data |
| 22 | + - name: Build the docker images |
| 23 | + run: make build-test |
| 24 | + - name: Start the docker images |
| 25 | + run: make start-test |
| 26 | + - name: Check running containers |
| 27 | + run: docker ps -a |
| 28 | + - name: Wait for database connection |
| 29 | + run: make wait-for-db |
| 30 | + - name: Run migrations |
| 31 | + run: make drop-migrate |
| 32 | + - name: Generate keys |
| 33 | + run: make generate-jwt-keys |
| 34 | + - name: Create roles and groups |
| 35 | + run: make create-roles-groups |
| 36 | + - name: Create cron jobs |
| 37 | + run: make migrate-cron-jobs |
| 38 | + - name: Setup transports for Messenger component |
| 39 | + run: make messenger-setup-transports |
| 40 | + - name: Wait for Elastic connection |
| 41 | + run: make wait-for-elastic |
| 42 | + - name: Create or update Elastic index template |
| 43 | + run: make elastic-create-or-update-template |
| 44 | + - name: Show framework version and additional info, php & composer version |
| 45 | + run: make info |
| 46 | + - name: Run test suite |
| 47 | + run: make phpunit |
| 48 | + - name: Archive coverage data for Qodana |
| 49 | + uses: actions/upload-artifact@v4 |
| 50 | + with: |
| 51 | + name: php-coverage-data |
| 52 | + path: reports/clover.xml |
| 53 | + - name: Checks for security vulnerability advisories for installed packages |
| 54 | + run: make composer-audit |
| 55 | + - name: Run coding standard |
| 56 | + run: make ecs |
| 57 | + - name: Run codeSniffer |
| 58 | + run: make phpcs |
| 59 | + - name: Run PHPStan |
| 60 | + run: make phpstan |
| 61 | + - name: Run PHPInsights |
| 62 | + run: make phpinsights |
| 63 | + - name: Run php mess detector |
| 64 | + run: make phpmd |
| 65 | + - name: Run php copy paste detector |
| 66 | + run: make phpcpd |
| 67 | + - name: Stop the docker images |
| 68 | + run: make stop-test |
| 69 | + |
| 70 | + build-staging: |
| 71 | + needs: build |
| 72 | + runs-on: ubuntu-latest |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v4 |
| 75 | + - name: Set Elastic data folder rights |
| 76 | + run: chmod 777 var/elasticsearch-data |
| 77 | + - name: Build the staging docker images |
| 78 | + run: make build-staging |
| 79 | + - name: Start the staging docker images |
| 80 | + run: make start-staging |
| 81 | + - name: Check running staging containers |
| 82 | + run: docker ps -a |
| 83 | + - name: Wait for database connection |
| 84 | + run: make wait-for-db |
| 85 | + - name: Run migrations |
| 86 | + run: make migrate-no-test |
| 87 | + - name: Generate keys |
| 88 | + run: make generate-jwt-keys |
| 89 | + - name: Create roles and groups |
| 90 | + run: make create-roles-groups |
| 91 | + - name: Create cron jobs |
| 92 | + run: make migrate-cron-jobs |
| 93 | + - name: Setup transports for Messenger component |
| 94 | + run: make messenger-setup-transports |
| 95 | + - name: Wait for Elastic connection |
| 96 | + run: make wait-for-elastic |
| 97 | + - name: Create or update Elastic index template |
| 98 | + run: make elastic-create-or-update-template |
| 99 | + - name: Show framework version and additional info, php & composer version |
| 100 | + run: make info |
| 101 | + - name: Stop the staging docker images |
| 102 | + run: make stop-staging |
69 | 103 |
|
70 | 104 | # Currently local Qodana report differ from CI Qodana report due to some issues https://youtrack.jetbrains.com/issue/QD-7379
|
71 | 105 | # qodana:
|
|
0 commit comments