Skip to content

Update analysis workflow configuration #118

Update analysis workflow configuration

Update analysis workflow configuration #118

Workflow file for this run

# .github/workflows/build.yml
name: "Unit tests"
on: [ push ]
jobs:
build:
name: "PHP ${{ matrix.php-version }}"
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- php-version: "7.1"
- php-version: "7.2"
- php-version: "7.3"
- php-version: "7.4"
- php-version: "8.0"
- php-version: "8.1"
- php-version: "8.2"
- php-version: "8.3"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Build environment"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: "xdebug"
- name: "Dependencies"
run: |
php --version
composer --version
COMPOSER_MEMORY_LIMIT=-1 composer update
- name: "Application"
run: |
mkdir -p build/logs
wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar -O coveralls.phar
chmod +x coveralls.phar
php coveralls.phar --version
- name: "Tests"
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: "Coverage"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: php-${{ matrix.php-version }}
COVERALLS_PARALLEL: true
run: php coveralls.phar -v
coverage:
name: "Coverage"
runs-on: ubuntu-22.04
needs: "build"
if: always()
steps:
- name: "Coverage"
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true