|
| 1 | +on: pull_request |
1 | 2 | name: Review |
2 | 3 | env: |
3 | 4 | COMPOSE_USER: runner |
4 | | -on: pull_request |
5 | | - |
6 | 5 | jobs: |
7 | | - test-suite: |
8 | | - name: Test suite |
9 | | - runs-on: ubuntu-latest |
10 | | - steps: |
11 | | - - uses: actions/checkout@v5 |
12 | | - |
13 | | - - name: Install Task |
14 | | - uses: go-task/setup-task@v1 |
15 | | - |
16 | | - - name: Setup docker network |
17 | | - run: | |
18 | | - docker network create frontend |
19 | | -
|
20 | | - - name: Install Site |
21 | | - run: | |
22 | | - task site:update |
23 | | - task site:migrate |
24 | | - task fixtures:load -y |
25 | | -
|
26 | | - - name: Test suite |
27 | | - run: | |
28 | | - task test:matrix |
29 | | -
|
30 | | - - name: Upload coverage to Codecov test |
31 | | - uses: codecov/codecov-action@v5 |
32 | | - with: |
33 | | - files: ./coverage/unit.xml |
34 | | - flags: unittests |
35 | | - env: |
36 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
37 | | - |
38 | | - validate-doctrine-schema: |
39 | | - runs-on: ubuntu-latest |
40 | | - name: Validate Doctrine Schema |
41 | | - steps: |
42 | | - - name: Checkout |
43 | | - uses: actions/checkout@v6 |
44 | | - |
45 | | - - name: Create docker network |
46 | | - run: docker network create frontend |
47 | | - |
48 | | - - name: Install and validate |
49 | | - run: | |
50 | | - docker compose up --detach |
51 | | - docker compose exec phpfpm composer install --no-interaction |
52 | | - docker compose exec phpfpm bin/console doctrine:migrations:migrate --no-interaction |
53 | | - docker compose exec phpfpm bin/console messenger:setup-transports failed |
54 | | - docker compose exec phpfpm bin/console doctrine:schema:validate |
55 | | -
|
56 | 6 | phpstan: |
57 | 7 | runs-on: ubuntu-latest |
58 | 8 | name: PHPStan |
|
95 | 45 | fail_ci_if_error: true |
96 | 46 | flags: unittests |
97 | 47 |
|
98 | | - fixtures: |
99 | | - runs-on: ubuntu-latest |
100 | | - name: Load fixtures |
101 | | - steps: |
102 | | - - name: Checkout |
103 | | - uses: actions/checkout@v6 |
104 | | - |
105 | | - - name: Create docker network |
106 | | - run: docker network create frontend |
107 | | - |
108 | | - - name: Load fixtures |
109 | | - run: | |
110 | | - docker compose up --detach |
111 | | - docker compose exec phpfpm composer install --no-interaction |
112 | | - docker compose exec phpfpm bin/console doctrine:migrations:migrate --no-interaction |
113 | | - docker compose exec phpfpm composer fixtures |
114 | | -
|
115 | 48 | build-assets: |
116 | 49 | runs-on: ubuntu-latest |
117 | 50 | name: Build assets |
|
0 commit comments