Skip to content

Allow for function imports #56

Allow for function imports

Allow for function imports #56

Workflow file for this run

name: Tests
on: [push]
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 7.3]
laravel: [6, 7]
dependency-version: [lowest, stable]
include:
- laravel: 7
testbench: 5
- laravel: 6
testbench: 4
name: ${{ matrix.laravel }}.x on ${{ matrix.php }} (${{ matrix.dependency-version }} deps)
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php }}
extensions: dom, libxml, mbstring
coverage: pcov
- name: Install dependencies
run: composer update --prefer-${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Set Laravel version
run: "composer require laravel/framework:^${{ matrix.laravel }}.0 orchestra/testbench:^${{ matrix.testbench }}.0 --update-with-all-dependencies --prefer-${{ matrix.dependency-version }} --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist"
- name: Execute tests
run: vendor/bin/phpunit --coverage-clover ${{ github.workspace }}/clover.xml
- name: Publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: echo "ok"
debug: true
coverageLocations:
"${{github.workspace}}/clover.xml:clover"