-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
155 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,127 @@ | ||
# | ||
# JBZoo Toolbox - Mermaid-PHP | ||
# | ||
# This file is part of the JBZoo Toolbox project. | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
# @package Mermaid-PHP | ||
# @license MIT | ||
# @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
# @link https://github.com/JBZoo/Mermaid-PHP | ||
# | ||
|
||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- 'master' | ||
schedule: | ||
- cron: '20 */8 * * *' | ||
|
||
env: | ||
COLUMNS: 120 | ||
TERM_PROGRAM: Hyper | ||
|
||
jobs: | ||
phpunit: | ||
name: PHPUnit | ||
runs-on: ubuntu-latest | ||
env: | ||
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }} | ||
strategy: | ||
matrix: | ||
php-version: [ 7.2, 7.3, 7.4, 8.0 ] | ||
composer_flags: [ "--prefer-lowest", "" ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: xdebug | ||
tools: composer | ||
|
||
- name: Build the Project | ||
run: make update --no-print-directory | ||
|
||
- name: 🧪 PHPUnit Tests | ||
run: make test --no-print-directory | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }} | ||
path: build/ | ||
|
||
|
||
linters: | ||
name: Linters | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-version: [ 7.2, 7.3, 7.4, 8.0 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: ast | ||
tools: composer | ||
|
||
- name: Build the Project | ||
run: make update --no-print-directory | ||
|
||
- name: 👍 Code Quality | ||
run: make codestyle --no-print-directory | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Linters - ${{ matrix.php-version }} | ||
path: build/ | ||
|
||
|
||
report: | ||
name: Reports | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-version: [ 7.2, 7.3, 7.4, 8.0 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: xdebug | ||
tools: composer | ||
|
||
- name: Build the Project | ||
run: make update --no-print-directory | ||
|
||
- name: 📝 Build Reports | ||
run: make report-all --no-print-directory | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Reports - ${{ matrix.php-version }} | ||
path: build/ |
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
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