|
17 | 17 | - name: "Setup PHP" |
18 | 18 | uses: "shivammathur/setup-php@v2" |
19 | 19 | with: |
20 | | - php-version: "7.3" |
| 20 | + php-version: "8.0" |
21 | 21 | extensions: "curl, soap" |
22 | 22 | tools: "composer:v2" |
23 | 23 |
|
|
40 | 40 | - name: "Setup PHP" |
41 | 41 | uses: "shivammathur/setup-php@v2" |
42 | 42 | with: |
43 | | - php-version: "7.3" |
| 43 | + php-version: "8.0" |
44 | 44 | extensions: "curl, soap" |
45 | 45 | tools: "composer:v2" |
46 | 46 |
|
|
57 | 57 | strategy: |
58 | 58 | fail-fast: true |
59 | 59 | matrix: |
60 | | - php: ["7.3", "7.4"] |
| 60 | + php: ["8.0"] |
61 | 61 | composer_flags: ["", "--prefer-lowest"] |
62 | 62 |
|
63 | 63 | name: "Tests PHP ${{ matrix.php }} ${{ matrix.composer_flags}}" |
|
85 | 85 | - name: "Execute tests" |
86 | 86 | run: "vendor/bin/phpunit --coverage-clover=coverage.clover" |
87 | 87 |
|
88 | | - - name: "Upload code coverage" |
89 | | - run: "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover" |
90 | | - |
91 | | - guzzle: |
92 | | - strategy: |
93 | | - fail-fast: true |
94 | | - matrix: |
95 | | - guzzle: ["3", "5", "6"] |
96 | | - |
97 | | - name: "Integration test for Guzzle ${{ matrix.guzzle }}" |
98 | | - |
99 | | - runs-on: "ubuntu-latest" |
100 | | - |
101 | | - steps: |
102 | | - - name: "Checkout code" |
103 | | - uses: "actions/checkout@v2" |
104 | | - |
105 | | - - name: "Setup PHP" |
106 | | - uses: "shivammathur/setup-php@v2" |
107 | | - with: |
108 | | - php-version: "7.3" |
109 | | - extensions: "curl, soap" |
110 | | - tools: "composer:v2" |
111 | | - coverage: "pcov" |
112 | | - |
113 | | - - name: "Check Composer configuration" |
114 | | - run: "composer validate --strict" |
115 | | - |
116 | | - - name: "Install dependencies" |
117 | | - run: "composer update --prefer-dist --no-interaction --no-progress" |
118 | | - |
119 | | - - name: "Execute tests" |
120 | | - run: "cd tests/integration/guzzle/${{ matrix.guzzle }}/ && composer update --prefer-dist --no-interaction --no-progress && ../../../../vendor/bin/phpunit --coverage-clover=coverage.clover" |
121 | | - |
122 | | - - name: "Upload code coverage" |
123 | | - run: "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover" |
124 | | - |
125 | | - soap: |
126 | | - strategy: |
127 | | - fail-fast: true |
128 | | - |
129 | | - name: "SOAP integration test" |
130 | | - |
131 | | - runs-on: "ubuntu-latest" |
132 | | - |
133 | | - steps: |
134 | | - - name: "Checkout code" |
135 | | - uses: "actions/checkout@v2" |
136 | | - |
137 | | - - name: "Setup PHP" |
138 | | - uses: "shivammathur/setup-php@v2" |
| 88 | + - name: Upload Scrutinizer coverage |
| 89 | + uses: sudo-bot/action-scrutinizer@latest |
139 | 90 | with: |
140 | | - php-version: "7.3" |
141 | | - extensions: "curl, soap" |
142 | | - tools: "composer:v2" |
143 | | - coverage: "pcov" |
144 | | - |
145 | | - - name: "Check Composer configuration" |
146 | | - run: "composer validate --strict" |
147 | | - |
148 | | - - name: "Install dependencies" |
149 | | - run: "composer update --prefer-dist --no-interaction --no-progress" |
150 | | - |
151 | | - - name: "Execute tests" |
152 | | - run: "cd tests/integration/soap/ && composer update --prefer-dist --no-interaction --no-progress && ../../../vendor/bin/phpunit --coverage-clover=coverage.clover" |
153 | | - |
154 | | - - name: "Upload code coverage" |
155 | | - run: "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover" |
| 91 | + cli-args: "--format=php-clover coverage.clover" |
0 commit comments