Skip to content

Commit f386081

Browse files
authored
Create laravel.yml
1 parent 5b99e1e commit f386081

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/laravel.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)