Skip to content

Commit 597d0b7

Browse files
authored
Merge pull request #8 from binary-cats/cyrillkalita-work-flow
Add Automatic testing via Github actions
2 parents fa1d937 + 904e327 commit 597d0b7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/laravel.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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: Execute tests (Unit and Feature tests) via PHPUnit
21+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)