Skip to content

Bump codecov/codecov-action from 3.1.4 to 4.3.0 #878

Bump codecov/codecov-action from 3.1.4 to 4.3.0

Bump codecov/codecov-action from 3.1.4 to 4.3.0 #878

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- "2.x"
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php-version }}
- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: 'echo "::set-output name=directory::$(composer config cache-dir)"'
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3.3.2"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-composer-cache"
- name: "Install lowest available packages for PHP 7.4 and 8.0"
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
run: "composer up --prefer-lowest"
- name: "Run tests (old PHP versions)"
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
run: "PHPUNIT_FLAGS=--no-coverage make test-phpunit test-psalm test-examples"
- name: "Run tests"
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }}
run: "make -j -O test"
- name: "Send code coverage"
if: ${{ matrix.php-version == '8.3' }}
uses: codecov/codecov-action@v4.3.0