Skip to content

Merge pull request #185 from LaravelFreelancerNL/106-add-union-aggreg… #476

Merge pull request #185 from LaravelFreelancerNL/106-add-union-aggreg…

Merge pull request #185 from LaravelFreelancerNL/106-add-union-aggreg… #476

Workflow file for this run

name: Test Coverage
on: [workflow_dispatch, push, pull_request]
env:
DB_ENDPOINT: 'http://127.0.0.1:8529'
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
laravel: ['^11.0']
include:
- laravel: '^11.0'
testbench: '^9.0'
name: Test coverage (Scrutinizer)
services:
arangodb:
image: arangodb:latest
ports:
- 8529:8529
env:
ARANGO_NO_AUTH: 1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
- name: Install Ocular globally
run: composer global require scrutinizer/ocular
- name: Install dependencies
run: |
composer require laravel/framework:${{ matrix.laravel }} orchestra/testbench:${{ matrix.testbench }} --no-interaction --no-update
composer update --prefer-dist --no-progress --no-interaction
- name: Prepare test database
run: |
chmod +x "${GITHUB_WORKSPACE}/bin/prepare-test-db.sh"
"${GITHUB_WORKSPACE}/bin/prepare-test-db.sh"
- name: Test coverage
run: |
chmod +x "${GITHUB_WORKSPACE}/bin/test.sh"
"${GITHUB_WORKSPACE}/bin/test.sh"
echo "Upload results to Scrutinizer-ci"
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover clover.xml