We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b2f98 commit 992bac7Copy full SHA for 992bac7
.github/workflows/laravel.yml
@@ -0,0 +1,24 @@
1
+name: Laravel
2
+
3
+on: [push]
4
5
+jobs:
6
+ laravel-tests:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - name: Copy .env
11
+ run: php -r "file_exists('.env') || copy('.env.example', '.env');"
12
+ - name: Install Dependencies
13
+ run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
14
+ - name: Generate key
15
+ run: php artisan key:generate
16
+ - name: Create Database
17
+ run: |
18
+ mkdir -p database
19
+ touch database/database.sqlite
20
+ - name: Execute tests (Unit and Feature tests) via PHPUnit
21
+ env:
22
+ DB_CONNECTION: sqlite
23
+ DB_DATABASE: database/database.sqlite
24
+ run: vendor/bin/phpunit
0 commit comments