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