Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Setup ci/cd pipeline when pushing on master branch #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
create yaml file for testing
  • Loading branch information
honorezemagho authored Jul 9, 2020
commit 2c0a4b53bbb64f47a51d1943508d112d24a2db0b
39 changes: 39 additions & 0 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Laravel

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env2.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Install NPM Dependencies with yarn
run: yarn install
- name: Compiles assets for production
run: yarn run production
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Run all Migrations and seeders
run: php artisan migrate --seed