Skip to content

Commit

Permalink
Added laravel/legacy-factories & CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Mar 13, 2023
1 parent 6c455ee commit 47dc15b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: push
name: CI

jobs:
phpunit:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Configure composer for Nova
run: composer config 'http-basic.nova.laravel.com' '${{ secrets.NOVA_USERNAME }}' '${{ secrets.NOVA_LICENSE_KEY }}'

- name: Install composer dependencies
run: |
composer install --prefer-dist --no-interaction --no-scripts
- name: Run Testsuite
run: vendor/bin/phpunit tests/
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
],
"require-dev": {
"doctrine/dbal": "^2.12",
"mockery/mockery": "^1.1",
"laravel/legacy-factories": "^1.3",
"laravel/nova": "^4.2",
"mockery/mockery": "^1.1",
"orchestra/testbench": "^7.4",
"phpunit/phpunit": "^9.5.10"
},
Expand Down

0 comments on commit 47dc15b

Please sign in to comment.