Skip to content

This GitHub action will run your Laravel application's test suite

License

Notifications You must be signed in to change notification settings

halaslabs/laravel-test-runner

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to run your Laravel application's test suite.

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.

Usage

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

Inputs

- 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'

About

This GitHub action will run your Laravel application's test suite

Resources

License

Stars

Watchers

Forks