This GitHub Action will run your Laravel application's test suite with php artisan test
.
For more information about testing your Laravel application see the official documentation.
To use this action, call it as a step in one of your workflows.
See action.yml
name: 'Test'
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- uses: halaslabs/laravel-test-runner@v1
with:
php-version: 8.2
A demo of the action can be seen here: https://github.com/halaslabs/laravel-test-runner/actions/workflows/test.yml
- uses: halaslabs/laravel-test-runner@v1
with:
# Version of php to install for running the test suite.
# For supported versions, see: https://github.com/shivammathur/setup-php#tada-php-support
# default: 8.2
php-version: '8.2'
# If true, we run https://github.com/shivammathur/setup-php prior to running your laravel tests
# If false, you are in charge of setting php as needed for your application.
# default: true
setup: 'true'