|
11 | 11 | # @link https://github.com/JBZoo/SimpleTypes |
12 | 12 | # |
13 | 13 |
|
14 | | -name: Continuous Integration |
| 14 | +name: CI |
15 | 15 |
|
16 | 16 | on: |
17 | 17 | pull_request: |
|
21 | 21 | branches: |
22 | 22 | - 'master' |
23 | 23 | schedule: |
24 | | - - cron: '15 */8 * * *' |
| 24 | + - cron: '25 */8 * * *' |
25 | 25 |
|
26 | 26 | env: |
27 | 27 | COLUMNS: 120 |
28 | 28 | TERM_PROGRAM: Hyper |
29 | 29 |
|
30 | 30 | jobs: |
31 | 31 | phpunit: |
32 | | - name: Tests |
| 32 | + name: PHPUnit |
33 | 33 | runs-on: ubuntu-latest |
34 | 34 | env: |
35 | 35 | JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }} |
36 | 36 | strategy: |
37 | 37 | matrix: |
38 | | - php-version: [ 7.2, 7.3, 7.4 ] |
39 | | - experimental: [ false ] |
| 38 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
40 | 39 | composer_flags: [ "--prefer-lowest", "" ] |
41 | | - include: |
42 | | - - php-version: "8.0" |
43 | | - experimental: true |
44 | | - - php-version: "8.1" |
45 | | - experimental: true |
46 | 40 | steps: |
47 | 41 | - name: Checkout code |
48 | 42 | uses: actions/checkout@v2 |
49 | 43 | with: |
50 | 44 | fetch-depth: 0 |
51 | 45 |
|
52 | | - - name: Setup PHP and composer |
| 46 | + - name: Setup PHP |
53 | 47 | uses: shivammathur/setup-php@v2 |
54 | 48 | with: |
55 | 49 | php-version: ${{ matrix.php-version }} |
56 | 50 | coverage: xdebug |
57 | 51 | tools: composer |
58 | 52 |
|
59 | 53 | - name: Build the Project |
60 | | - continue-on-error: ${{ matrix.experimental }} |
61 | 54 | run: make update --no-print-directory |
62 | 55 |
|
63 | 56 | - name: 🧪 PHPUnit Tests |
64 | | - continue-on-error: ${{ matrix.experimental }} |
65 | 57 | run: make test --no-print-directory |
66 | 58 |
|
| 59 | + - name: Upload Artifacts |
| 60 | + uses: actions/upload-artifact@v2 |
| 61 | + with: |
| 62 | + name: PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }} |
| 63 | + path: build/ |
| 64 | + |
| 65 | + |
| 66 | + linters: |
| 67 | + name: Linters |
| 68 | + runs-on: ubuntu-latest |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
| 72 | + steps: |
| 73 | + - name: Checkout code |
| 74 | + uses: actions/checkout@v2 |
| 75 | + with: |
| 76 | + fetch-depth: 0 |
| 77 | + |
| 78 | + - name: Setup PHP |
| 79 | + uses: shivammathur/setup-php@v2 |
| 80 | + with: |
| 81 | + php-version: ${{ matrix.php-version }} |
| 82 | + extensions: ast |
| 83 | + tools: composer |
| 84 | + |
| 85 | + - name: Build the Project |
| 86 | + run: make update --no-print-directory |
| 87 | + |
67 | 88 | - name: 👍 Code Quality |
68 | | - continue-on-error: ${{ matrix.experimental }} |
69 | 89 | run: make codestyle --no-print-directory |
70 | 90 |
|
71 | | - - name: 📝 Build All Reports at Once |
72 | | - continue-on-error: ${{ matrix.experimental }} |
| 91 | + - name: Upload Artifacts |
| 92 | + uses: actions/upload-artifact@v2 |
| 93 | + with: |
| 94 | + name: Linters - ${{ matrix.php-version }} |
| 95 | + path: build/ |
| 96 | + |
| 97 | + |
| 98 | + report: |
| 99 | + name: Reports |
| 100 | + runs-on: ubuntu-latest |
| 101 | + strategy: |
| 102 | + matrix: |
| 103 | + php-version: [ 7.2, 7.3, 7.4, 8.0 ] |
| 104 | + steps: |
| 105 | + - name: Checkout code |
| 106 | + uses: actions/checkout@v2 |
| 107 | + with: |
| 108 | + fetch-depth: 0 |
| 109 | + |
| 110 | + - name: Setup PHP |
| 111 | + uses: shivammathur/setup-php@v2 |
| 112 | + with: |
| 113 | + php-version: ${{ matrix.php-version }} |
| 114 | + coverage: xdebug |
| 115 | + tools: composer |
| 116 | + |
| 117 | + - name: Build the Project |
| 118 | + run: make update --no-print-directory |
| 119 | + |
| 120 | + - name: 📝 Build Reports |
73 | 121 | run: make report-all --no-print-directory |
| 122 | + |
| 123 | + - name: Upload Artifacts |
| 124 | + uses: actions/upload-artifact@v2 |
| 125 | + with: |
| 126 | + name: Reports - ${{ matrix.php-version }} |
| 127 | + path: build/ |
0 commit comments