Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from elyday/release/0.2.1
Browse files Browse the repository at this point in the history
Release/0.2.1
  • Loading branch information
elyday authored Feb 11, 2021
2 parents 0375024 + fc50e43 commit 5d2a2cf
Show file tree
Hide file tree
Showing 7 changed files with 15,376 additions and 2,201 deletions.
4 changes: 2 additions & 2 deletions .env.ci
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3308
DB_PORT=33306
DB_DATABASE=manager
DB_USERNAME=root
DB_USERNAME=manager
DB_PASSWORD=manager

BROADCAST_DRIVER=log
Expand Down
82 changes: 54 additions & 28 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,65 @@
name: PHPUnit
name : PHPUnit

on:
on :
[ push, pull_request ]

jobs:
phpunit:
runs-on: ubuntu-latest
jobs :
phpunit :
runs-on : ubuntu-latest

steps:
- uses: getong/mariadb-action@v1.1
services :
mysql :
image : mysql:5.7
env:
MYSQL_DATABASE: 'manager'
MYSQL_USER: 'manager'
MYSQL_PASSWORD: 'manager'
MYSQL_ROOT_PASSWORD: 'manager'
ports :
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

strategy :
fail-fast : true
matrix :
php : [ '7.4' ]

name: PHP ${{ matrix.php }}

steps :
- name: Checkout the Code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
host port: 3308 # Optional, default value is 3306. The port of host
container port: 3308 # Optional, default value is 3306. The port of container
mysql database: 'manager'
mysql root password: 'manager'
mysql user: 'manager'
mysql password: 'manager'
- uses: actions/checkout@v2
- 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-progress --prefer-dist
- name: Laravel Preparation
run: |
php-version: ${{ matrix.php }}
extensions: xml, curl
tools: composer:v2

- name : Copy .env
run : php -r "file_exists('.env') || copy('.env.ci', '.env');"

- name : Install Dependencies
run : composer install

- name : Laravel Preparation
run : |
php artisan key:generate
php artisan optimize
php artisan cache:clear
php artisan config:cache
- name: Database Preparation
run: php artisan migrate:fresh
- name: JS/CSS Preparation
run: |
- name : Database Preparation
run : php artisan migrate

- name : JS/CSS Preparation
run : |
npm install
npm run dev
- name: Testing
run: php artisan test --coverage-clover=coverage.xml
- name: Upload CodeCoverage
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
- name : Testing
run : php artisan test --coverage-clover=coverage.xml

- name : Upload CodeCoverage
run : bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "elyday/manager",
"type": "project",
"description": "The Laravel Framework.",
"version": "0.2",
"version": "0.2.1",
"keywords": [
"manager",
"elyday"
Expand All @@ -22,12 +22,13 @@
"lorisleiva/laravel-deployer": "^0.3.5"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"laravel/sail": "^1.3",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^9.3",
"roave/security-advisories": "dev-master"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 5d2a2cf

Please sign in to comment.