Skip to content

Merge pull request #7 from Astrotomic/dependabot/github_actions/actio… #89

Merge pull request #7 from Astrotomic/dependabot/github_actions/actio…

Merge pull request #7 from Astrotomic/dependabot/github_actions/actio… #89

Workflow file for this run

name: pest
on:
push:
jobs:
pest:
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.3, 8.2, 8.1]
laravel: [^10.0]
dependency-version: [prefer-lowest, prefer-stable]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, mbstring, zip, pcntl, intl
coverage: xdebug
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- run: vendor/bin/pest --coverage --coverage-html=.coverage
- uses: actions/upload-artifact@v4
with:
name: "Coverage - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}"
path: ./.coverage
infection:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: 8.1
extensions: dom, curl, mbstring, zip, pcntl, intl
coverage: xdebug
- run: composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
- run: vendor/bin/infection -j2 --logger-github
continue-on-error: true