|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | build:
|
16 |
| - name: PHP ${{ matrix.php-versions }} - RedisTimeSeries ${{ matrix.rts-versions }} |
| 16 | + name: PHP ${{ matrix.php-version }} - RedisTimeSeries ${{ matrix.rts-version }} |
17 | 17 | runs-on: ubuntu-latest
|
18 | 18 | strategy:
|
19 | 19 | matrix:
|
20 |
| - php-versions: ['7.2', '7.3', '7.4'] |
21 |
| - rts-versions: ['1.4.8', 'edge'] |
| 20 | + php-version: ['7.2', '7.3', '7.4'] |
| 21 | + rts-version: ['1.4.8', 'edge'] |
22 | 22 | services:
|
23 | 23 | redis:
|
24 |
| - image: redislabs/redistimeseries:${{ matrix.rts-versions }} |
| 24 | + image: redislabs/redistimeseries:${{ matrix.rts-version }} |
25 | 25 | ports:
|
26 | 26 | - 6379:6379
|
27 | 27 | options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
|
31 | 31 | - name: Setup PHP
|
32 | 32 | uses: shivammathur/setup-php@v2
|
33 | 33 | with:
|
34 |
| - php-version: ${{ matrix.php-versions }} |
| 34 | + php-version: ${{ matrix.php-version }} |
35 | 35 | extensions: redis
|
36 | 36 | coverage: xdebug
|
37 | 37 | - name: Get composer cache directory
|
|
41 | 41 | uses: actions/cache@v2
|
42 | 42 | with:
|
43 | 43 | path: ${{ steps.composer-cache.outputs.dir }}
|
44 |
| - # Use composer.json for key, if composer.lock is not committed. |
45 |
| - # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
46 | 44 | key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
47 | 45 | restore-keys: ${{ runner.os }}-composer-
|
48 | 46 | - name: Install dependencies
|
|
52 | 50 | run: vendor/bin/phpunit --coverage-text
|
53 | 51 | env:
|
54 | 52 | REDIS_HOST: localhost
|
55 |
| - REDIS_TIMESERIES_VERSION: ${{ matrix.rts-versions }} |
| 53 | + REDIS_TIMESERIES_VERSION: ${{ matrix.rts-version }} |
56 | 54 | - name: Run psalm
|
57 | 55 | run: vendor/bin/psalm
|
| 56 | + - name: Export coverage |
| 57 | + uses: paambaati/codeclimate-action@v2.7.5 |
| 58 | + if: ${{ matrix.php-version == '7.4' && matrix.rts-version == '1.4.8' }} |
| 59 | + env: |
| 60 | + CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} |
| 61 | + with: |
| 62 | + coverageLocations: clover.xml:clover |
0 commit comments