|
18 | 18 | branches: |
19 | 19 | - "*" |
20 | 20 | push: |
21 | | - branches: [ master ] |
| 21 | + branches: |
| 22 | + - 'master' |
22 | 23 | schedule: |
23 | | - - cron: '30 */8 * * *' |
| 24 | + - cron: '15 */8 * * *' |
24 | 25 |
|
25 | 26 | env: |
26 | 27 | COLUMNS: 120 |
27 | 28 | TERM_PROGRAM: Hyper |
28 | 29 |
|
29 | 30 | jobs: |
30 | | - phpunit: |
31 | | - name: PHPUnit |
| 31 | + phpunit-update: |
| 32 | + name: PHPUnit (update) |
32 | 33 | runs-on: ubuntu-latest |
33 | 34 | env: |
34 | 35 | JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }} |
35 | 36 | strategy: |
36 | 37 | matrix: |
37 | | - php-version: [ 7.2, 7.3, 7.4 ] |
38 | | - experimental: [ false ] |
| 38 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
39 | 39 | composer_flags: [ "--prefer-lowest", "" ] |
40 | | - include: |
41 | | - - php-version: "8.0" |
42 | | - experimental: true |
43 | | - - php-version: "8.1" |
44 | | - experimental: true |
45 | 40 | steps: |
46 | 41 | - name: Checkout code |
47 | 42 | uses: actions/checkout@v2 |
48 | 43 | with: |
49 | 44 | fetch-depth: 0 |
50 | 45 |
|
51 | | - - name: Setup PHP and composer |
| 46 | + - name: Setup PHP |
| 47 | + uses: shivammathur/setup-php@v2 |
| 48 | + with: |
| 49 | + php-version: ${{ matrix.php-version }} |
| 50 | + coverage: xdebug |
| 51 | + tools: composer |
| 52 | + |
| 53 | + - name: Build the Project |
| 54 | + run: make update --no-print-directory |
| 55 | + |
| 56 | + - name: 🧪 PHPUnit Tests |
| 57 | + run: make test --no-print-directory |
| 58 | + |
| 59 | + - name: Upload Artifacts |
| 60 | + uses: actions/upload-artifact@v2 |
| 61 | + with: |
| 62 | + name: PHPUnit (update) - ${{ matrix.php-version }} - ${{ matrix.coverage }} - ${{ matrix.build-way }} |
| 63 | + path: build/ |
| 64 | + |
| 65 | + |
| 66 | + phpunit-build: |
| 67 | + name: PHPUnit (build) |
| 68 | + runs-on: ubuntu-latest |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + php-version: [ 7.2, 7.3, 7.4 ] |
| 72 | + steps: |
| 73 | + - name: Checkout code |
| 74 | + uses: actions/checkout@v2 |
| 75 | + with: |
| 76 | + fetch-depth: 0 |
| 77 | + |
| 78 | + - name: Setup PHP |
52 | 79 | uses: shivammathur/setup-php@v2 |
53 | 80 | with: |
54 | 81 | php-version: ${{ matrix.php-version }} |
55 | 82 | coverage: xdebug |
56 | 83 | tools: composer |
57 | 84 |
|
58 | 85 | - name: Build the Project |
59 | | - continue-on-error: ${{ matrix.experimental }} |
60 | 86 | run: make build --no-print-directory |
61 | 87 |
|
62 | 88 | - name: 🧪 PHPUnit Tests |
63 | | - continue-on-error: ${{ matrix.experimental }} |
64 | 89 | run: make test --no-print-directory |
65 | 90 |
|
| 91 | + - name: Upload Artifacts |
| 92 | + uses: actions/upload-artifact@v2 |
| 93 | + with: |
| 94 | + name: PHPUnit (build) - ${{ matrix.php-version }} - ${{ matrix.coverage }} - ${{ matrix.build-way }} |
| 95 | + path: build/ |
| 96 | + |
66 | 97 |
|
67 | 98 | linters: |
68 | 99 | name: Linters |
69 | 100 | runs-on: ubuntu-latest |
70 | 101 | strategy: |
71 | 102 | matrix: |
72 | | - php-version: [ 7.2, 7.3, 7.4 ] |
73 | | - experimental: [ false ] |
74 | | - include: |
75 | | - - php-version: "8.0" |
76 | | - experimental: true |
77 | | - - php-version: "8.1" |
78 | | - experimental: true |
| 103 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
79 | 104 | steps: |
80 | 105 | - name: Checkout code |
81 | 106 | uses: actions/checkout@v2 |
82 | 107 | with: |
83 | 108 | fetch-depth: 0 |
84 | 109 |
|
85 | | - - name: Setup PHP and composer |
| 110 | + - name: Setup PHP |
86 | 111 | uses: shivammathur/setup-php@v2 |
87 | 112 | with: |
88 | 113 | php-version: ${{ matrix.php-version }} |
| 114 | + extensions: ast |
89 | 115 | tools: composer |
90 | 116 |
|
91 | 117 | - name: Build the Project |
92 | | - continue-on-error: ${{ matrix.experimental }} |
93 | 118 | run: make update --no-print-directory |
94 | 119 |
|
95 | 120 | - name: 👍 Code Quality |
96 | | - continue-on-error: ${{ matrix.experimental }} |
97 | 121 | run: make codestyle --no-print-directory |
| 122 | + |
| 123 | + - name: Upload Artifacts |
| 124 | + uses: actions/upload-artifact@v2 |
| 125 | + with: |
| 126 | + name: Linters - ${{ matrix.php-version }} |
| 127 | + path: build/ |
| 128 | + |
| 129 | + |
| 130 | + report: |
| 131 | + name: Reports |
| 132 | + runs-on: ubuntu-latest |
| 133 | + strategy: |
| 134 | + matrix: |
| 135 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
| 136 | + steps: |
| 137 | + - name: Checkout code |
| 138 | + uses: actions/checkout@v2 |
| 139 | + with: |
| 140 | + fetch-depth: 0 |
| 141 | + |
| 142 | + - name: Setup PHP |
| 143 | + uses: shivammathur/setup-php@v2 |
| 144 | + with: |
| 145 | + php-version: ${{ matrix.php-version }} |
| 146 | + coverage: xdebug |
| 147 | + tools: composer |
| 148 | + |
| 149 | + - name: Build the Project |
| 150 | + run: make update --no-print-directory |
| 151 | + |
| 152 | + - name: 📝 Build Reports |
| 153 | + run: make report-all --no-print-directory |
| 154 | + |
| 155 | + - name: Upload Artifacts |
| 156 | + uses: actions/upload-artifact@v2 |
| 157 | + with: |
| 158 | + name: Reports - ${{ matrix.php-version }} |
| 159 | + path: build/ |
0 commit comments