Skip to content

.github/workflows/tests.yml #57

.github/workflows/tests.yml

.github/workflows/tests.yml #57

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
laravel: [^8]
dependency-version: [prefer-stable]
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 10
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
- name: Execute tests
run: vendor/bin/phpunit
- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
path: src/
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover tests/reports/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"
pint:
uses: intouchinsight/github-workflows/.github/workflows/laravel-pint.yml@main

Check failure on line 58 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

error parsing called workflow ".github/workflows/tests.yml" -> "intouchinsight/github-workflows/.github/workflows/laravel-pint.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
php_version: '8.3'