Skip to content

Merge pull request #40 from cjmellor/dependabot/github_actions/action… #83

Merge pull request #40 from cjmellor/dependabot/github_actions/action…

Merge pull request #40 from cjmellor/dependabot/github_actions/action… #83

Workflow file for this run

name: "Run Tests"
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 10 ]
stability: [ prefer-lowest, prefer-stable ]
name: "PHP: v${{ matrix.php }} / Laravel: v${{ matrix.laravel }} - ${{ matrix.stability }}"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest