Skip to content

Commit 5e89afd

Browse files
authored
Add github CI file
Test github CI
1 parent df69775 commit 5e89afd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI for Laravel Boilerplate
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- development
8+
9+
jobs:
10+
laravel-tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Copy ENV Laravel Configuration for CI
15+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
16+
- name: Install Dependencies
17+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
18+
- name: Generate Key
19+
run: php artisan key:generate
20+
- name: Execute Tests
21+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)