Skip to content

Commit 8209a54

Browse files
committed
Update GitHub actions
1 parent 07c5fbc commit 8209a54

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

.github/workflows/laravel.yml

+23-24
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,33 @@ name: Laravel
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
laravel-tests:
11-
1211
runs-on: ubuntu-latest
1312

1413
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

Comments
 (0)