This repository has been archived by the owner on Jun 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from elyday/release/0.2.1
Release/0.2.1
- Loading branch information
Showing
7 changed files
with
15,376 additions
and
2,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.