Create ci.yml

This commit is contained in:
Jitendra Singh 2020-01-21 19:07:17 +05:30 committed by GitHub
parent 7c31029349
commit 48ddb65b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Bagisto
on: [push]
jobs:
laravel-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.ci', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit, Feature and Trigger tests) via Codeception
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: |
set -e
@php artisan migrate:fresh --env=testing
vendor/bin/codecept run unit
vendor/bin/codecept run functional
vendor/bin/codecept run trigger