Skip to content

A GitHub action to run your Lumen project's PHPUnit test suite (inspired from nathanheffley/laravel-phpunit-action).

License

Notifications You must be signed in to change notification settings

carlosabcs/lumen-phpunit-action

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

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen PHPUnit Action

A Github action to run your Lumen project's PHPUnit test suite running with MySQL.

Usage

Just create a file with a name like this .github/workflow/[any_name].yml, with the following content:

name: PHPUnit

on:
  pull_request: {}
  push:
    branches:
      - master

jobs:
  phpunit:
    name: PHPUnit

    runs-on: ubuntu-latest

    services:
      mysql:
        image: mysql:8.0
        ports:
          - 3306:3306
        env:
          MYSQL_ROOT_PASSWORD:
          MYSQL_ALLOW_EMPTY_PASSWORD: yes
          MYSQL_USER: user
          MYSQL_PASSWORD: user
          MYSQL_DATABASE: dbname

    steps:
    - uses: actions/checkout@v1
    - uses: carlosabcs/lumen-phpunit-action@master

Don't forget that you should set up your database credentials both in your .env.example file and in the mysql service env variables in the content above!

About

A GitHub action to run your Lumen project's PHPUnit test suite (inspired from nathanheffley/laravel-phpunit-action).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •