Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bb0236c

Browse files
chore: laravel.yml
1 parent 9a10524 commit bb0236c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/laravel.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.pgsql
31+
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
32+
env:
33+
DB_CONNECTION: sqlite
34+
DB_DATABASE: database/database.pgsql
35+
run: php artisan test

0 commit comments

Comments
 (0)