Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michelmelo/laravel-phpunit-action
MM :: Laravel PHPUnit
https://github.com/michelmelo/laravel-phpunit-action
action laravel laravel-framework laravel-phpunit-action michelmelo mysql phpunit testing
Last synced: 6 days ago
JSON representation
MM :: Laravel PHPUnit
- Host: GitHub
- URL: https://github.com/michelmelo/laravel-phpunit-action
- Owner: michelmelo
- License: mit
- Created: 2020-06-26T12:50:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-16T07:07:12.000Z (over 4 years ago)
- Last Synced: 2025-01-01T13:21:08.215Z (21 days ago)
- Topics: action, laravel, laravel-framework, laravel-phpunit-action, michelmelo, mysql, phpunit, testing
- Language: Shell
- Homepage: https://www.buymeacoffee.com/michelmelo
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# MM :: Laravel PHPUnit
A Github action to run your Slim project's laravel test suite running with MySQL.
## Usage
Just create a file with a name like this `.github/workflow/[any_name].yml`, with the following content:
```yml
name: PHPUniton:
pull_request: {}
push:
branches:
- masterjobs:
phpunit:
name: PHPUnitruns-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: dbnamesteps:
- uses: actions/checkout@v1
- uses: michelmelo/laravel-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!