@@ -2,34 +2,33 @@ name: Laravel
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ main ]
7
+ branches : [main]
8
8
9
9
jobs :
10
10
laravel-tests :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
steps :
15
- - uses : shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
16
- with :
17
- php-version : ' 8.0 '
18
- - uses : actions/checkout@v2
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
32
- env :
33
- DB_CONNECTION : sqlite
34
- DB_DATABASE : database/database.sqlite
35
- run : vendor/bin/phpunit
14
+ - uses : shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
15
+ with :
16
+ php-version : " 8.1 "
17
+ - uses : actions/checkout@v2
18
+ - name : Copy .env
19
+ run : php -r "file_exists('.env') || copy('.env.example', '.env');"
20
+ - name : Install Dependencies
21
+ run : composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
22
+ - name : Generate key
23
+ run : php artisan key:generate
24
+ - name : Directory Permissions
25
+ run : chmod -R 777 storage bootstrap/cache
26
+ - name : Create Database
27
+ run : |
28
+ mkdir -p database
29
+ touch database/database.sqlite
30
+ - name : Execute tests (Unit and Feature tests) via PHPUnit
31
+ env :
32
+ DB_CONNECTION : sqlite
33
+ DB_DATABASE : database/database.sqlite
34
+ run : vendor/bin/phpunit
0 commit comments