Skip to content

Commit 992bac7

Browse files
authored
Deploy
Follow the process to deploy the software
1 parent c2b2f98 commit 992bac7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/laravel.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Laravel
2+
3+
on: [push]
4+
5+
jobs:
6+
laravel-tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Copy .env
11+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
12+
- name: Install Dependencies
13+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
14+
- name: Generate key
15+
run: php artisan key:generate
16+
- name: Create Database
17+
run: |
18+
mkdir -p database
19+
touch database/database.sqlite
20+
- name: Execute tests (Unit and Feature tests) via PHPUnit
21+
env:
22+
DB_CONNECTION: sqlite
23+
DB_DATABASE: database/database.sqlite
24+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)