|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - "*" |
| 7 | + schedule: |
| 8 | + - cron: '* * 15 * *' |
7 | 9 |
|
8 | 10 | jobs: |
9 | | - test-with-php83: |
| 11 | + test: |
| 12 | + name: Test |
10 | 13 | runs-on: ubuntu-latest |
11 | | - continue-on-error: true |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] |
12 | 17 | steps: |
13 | | - - uses: actions/checkout@v3 |
14 | | - - name: docker-compose-run |
| 18 | + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
| 19 | + - name: Run docker-compose |
15 | 20 | shell: bash |
16 | 21 | run: | |
17 | | - cp .github/workflows/Dockerfile-for-php-8.3 Dockerfile |
| 22 | + cp .github/workflows/php-${{ matrix.php }}.dockerfile Dockerfile |
18 | 23 | docker-compose up -d |
19 | | - sleep 60 |
20 | | - docker-compose exec -T web sh -c "cd / && composer test" |
21 | | -
|
22 | | - test-with-php82: |
23 | | - runs-on: ubuntu-latest |
24 | | - steps: |
25 | | - - uses: actions/checkout@v3 |
26 | | - - name: docker-compose-run |
27 | | - shell: bash |
28 | | - run: | |
29 | | - cp .github/workflows/Dockerfile-for-php-8.2 Dockerfile |
30 | | - docker-compose up -d |
31 | | - sleep 60 |
32 | | - docker-compose exec -T web sh -c "cd / && composer test" |
33 | | -
|
34 | | - test-with-php81: |
35 | | - runs-on: ubuntu-latest |
36 | | - steps: |
37 | | - - uses: actions/checkout@v3 |
38 | | - - name: docker-compose-run |
39 | | - shell: bash |
40 | | - run: | |
41 | | - cp .github/workflows/Dockerfile-for-php-8.1 Dockerfile |
42 | | - docker-compose up -d |
43 | | - sleep 60 |
44 | | - docker-compose exec -T web sh -c "cd / && composer test" |
| 24 | + sleep 30 |
45 | 25 |
|
46 | | - test-with-php80: |
47 | | - runs-on: ubuntu-latest |
48 | | - steps: |
49 | | - - uses: actions/checkout@v3 |
50 | | - - name: docker-compose-run |
| 26 | + - name: Run testing |
51 | 27 | shell: bash |
52 | 28 | run: | |
53 | | - cp .github/workflows/Dockerfile-for-php-8.0 Dockerfile |
54 | | - docker-compose up -d |
55 | | - sleep 60 |
56 | | - docker-compose exec -T web sh -c "cd / && composer test" |
57 | | -
|
58 | | - test-with-php74: |
59 | | - runs-on: ubuntu-latest |
60 | | - steps: |
61 | | - - uses: actions/checkout@v3 |
62 | | - - name: docker-compose-run |
63 | | - shell: bash |
64 | | - run: | |
65 | | - cp .github/workflows/Dockerfile-for-php-7.4 Dockerfile |
66 | | - docker-compose up -d |
67 | | - sleep 60 |
68 | | - docker-compose exec -T web sh -c "cd / && composer test" |
69 | | -
|
70 | | - test-with-php73: |
71 | | - runs-on: ubuntu-latest |
72 | | - steps: |
73 | | - - uses: actions/checkout@v3 |
74 | | - - name: docker-compose-run |
75 | | - shell: bash |
76 | | - run: | |
77 | | - cp .github/workflows/Dockerfile-for-php-7.3 Dockerfile |
78 | | - docker-compose up -d |
79 | | - sleep 60 |
80 | | - docker-compose exec -T web sh -c "cd / && composer test" |
81 | | -
|
82 | | - test-with-php72: |
83 | | - runs-on: ubuntu-latest |
84 | | - steps: |
85 | | - - uses: actions/checkout@v3 |
86 | | - - name: docker-compose-run |
87 | | - shell: bash |
88 | | - run: | |
89 | | - cp .github/workflows/Dockerfile-for-php-7.2 Dockerfile |
90 | | - docker-compose up -d |
91 | | - sleep 60 |
| 29 | + sleep 30 |
92 | 30 | docker-compose exec -T web sh -c "cd / && composer test" |
0 commit comments