|
26 | 26 | name: Composer |
27 | 27 |
|
28 | 28 | env: |
29 | | - COMPOSE_USER: runner |
| 29 | + COMPOSE_USER: runner |
30 | 30 |
|
31 | 31 | on: |
32 | | - pull_request: |
33 | | - push: |
34 | | - branches: |
35 | | - - main |
36 | | - - develop |
| 32 | + pull_request: |
| 33 | + push: |
| 34 | + branches: |
| 35 | + - main |
| 36 | + - develop |
37 | 37 |
|
38 | 38 | jobs: |
39 | | - composer-validate: |
40 | | - runs-on: ubuntu-latest |
41 | | - strategy: |
42 | | - fail-fast: false |
43 | | - steps: |
44 | | - - uses: actions/checkout@v5 |
| 39 | + composer-validate: |
| 40 | + runs-on: ubuntu-latest |
| 41 | + strategy: |
| 42 | + fail-fast: false |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v5 |
45 | 45 |
|
46 | | - - name: Create docker network |
47 | | - run: | |
48 | | - docker network create frontend |
| 46 | + - name: Create docker network |
| 47 | + run: | |
| 48 | + docker network create frontend |
49 | 49 |
|
50 | | - - run: | |
51 | | - docker compose run --rm phpfpm composer validate --strict |
| 50 | + - run: | |
| 51 | + docker compose run --rm phpfpm composer validate --strict |
52 | 52 |
|
53 | | - composer-normalized: |
54 | | - runs-on: ubuntu-latest |
55 | | - strategy: |
56 | | - fail-fast: false |
57 | | - steps: |
58 | | - - uses: actions/checkout@v5 |
| 53 | + composer-normalized: |
| 54 | + runs-on: ubuntu-latest |
| 55 | + strategy: |
| 56 | + fail-fast: false |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v5 |
59 | 59 |
|
60 | | - # https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug |
61 | | - # Enable tmate debugging if debug logging is enabled (cf. |
62 | | - # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context) |
63 | | - - name: Setup tmate session |
64 | | - uses: mxschmitt/action-tmate@v3 |
65 | | - with: |
66 | | - limit-access-to-actor: false |
67 | | - if: 1 == runner.debug |
| 60 | + # https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug |
| 61 | + # Enable tmate debugging if debug logging is enabled (cf. |
| 62 | + # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context) |
| 63 | + - name: Setup tmate session |
| 64 | + uses: mxschmitt/action-tmate@v3 |
| 65 | + with: |
| 66 | + limit-access-to-actor: false |
| 67 | + if: 1 == runner.debug |
68 | 68 |
|
69 | | - - name: Create docker network |
70 | | - run: | |
71 | | - docker network create frontend |
| 69 | + - name: Create docker network |
| 70 | + run: | |
| 71 | + docker network create frontend |
72 | 72 |
|
73 | | - - run: | |
74 | | - docker compose run --rm phpfpm composer install |
75 | | - docker compose run --rm phpfpm composer normalize --dry-run |
| 73 | + - run: | |
| 74 | + docker compose run --rm phpfpm composer install |
| 75 | + docker compose run --rm phpfpm composer normalize --dry-run |
76 | 76 |
|
77 | | - composer-audit: |
78 | | - runs-on: ubuntu-latest |
79 | | - strategy: |
80 | | - fail-fast: false |
81 | | - steps: |
82 | | - - uses: actions/checkout@v5 |
| 77 | + composer-audit: |
| 78 | + runs-on: ubuntu-latest |
| 79 | + strategy: |
| 80 | + fail-fast: false |
| 81 | + steps: |
| 82 | + - uses: actions/checkout@v5 |
83 | 83 |
|
84 | | - - name: Create docker network |
85 | | - run: | |
86 | | - docker network create frontend |
| 84 | + - name: Create docker network |
| 85 | + run: | |
| 86 | + docker network create frontend |
87 | 87 |
|
88 | | - - run: | |
89 | | - docker compose run --rm phpfpm composer audit |
| 88 | + - run: | |
| 89 | + docker compose run --rm phpfpm composer audit |
0 commit comments