File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Laravel
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ laravel-tests :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Copy .env
17
+ run : php -r "file_exists('.env') || copy('.env.example', '.env');"
18
+ - name : Install Dependencies
19
+ run : composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
20
+ - name : Generate key
21
+ run : php artisan key:generate
22
+ - name : Directory Permissions
23
+ run : chmod -R 777 storage bootstrap/cache
24
+ - name : Create Database
25
+ run : |
26
+ mkdir -p database
27
+ touch database/database.sqlite
28
+ - name : Execute tests (Unit and Feature tests) via PHPUnit
29
+ env :
30
+ DB_CONNECTION : sqlite
31
+ DB_DATABASE : database/database.sqlite
32
+ run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments