-
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.
- Loading branch information
Showing
5 changed files
with
146 additions
and
29 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 - Assets | ||
# | ||
# 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 Assets | ||
# @license MIT | ||
# @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
# @link https://github.com/JBZoo/Assets | ||
# | ||
|
||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- 'master' | ||
schedule: | ||
- cron: '30 */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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name" : "jbzoo/assets", | ||
"type" : "library", | ||
"description" : "Manage any asset files (js, css, less) and their depending + compressing and merging", | ||
"license" : "MIT", | ||
"keywords" : ["javascript", "js", "css", "less", "assets", "compress"], | ||
"authors" : [ | ||
"name" : "jbzoo/assets", | ||
"type" : "library", | ||
"description" : "Manage any asset files (js, css, less) and their depending + compressing and merging", | ||
"license" : "MIT", | ||
"keywords" : ["javascript", "js", "css", "less", "assets", "compress"], | ||
"authors" : [ | ||
{ | ||
"name" : "Denis Smetannikov", | ||
"email" : "[email protected]", | ||
|
@@ -16,38 +16,35 @@ | |
} | ||
], | ||
|
||
"require" : { | ||
"require" : { | ||
"php" : ">=7.2", | ||
|
||
"jbzoo/utils" : "^4.4.0", | ||
"jbzoo/path" : "^3.1.0", | ||
"jbzoo/less" : "^4.1.0", | ||
"jbzoo/data" : "^4.2.1" | ||
"jbzoo/utils" : "^4.5.0", | ||
"jbzoo/path" : "^3.2.0", | ||
"jbzoo/less" : "^4.2.0", | ||
"jbzoo/data" : "^4.3.0" | ||
}, | ||
|
||
"require-dev" : { | ||
"jbzoo/toolbox-dev" : "^2.11.0", | ||
"require-dev" : { | ||
"jbzoo/toolbox-dev" : "^2.13.1", | ||
"symfony/filesystem" : "^5.2.3" | ||
}, | ||
|
||
"autoload" : { | ||
"autoload" : { | ||
"psr-4" : { | ||
"JBZoo\\Assets\\" : "src" | ||
} | ||
}, | ||
|
||
"minimum-stability" : "dev", | ||
"prefer-stable" : true, | ||
|
||
"autoload-dev" : { | ||
"autoload-dev" : { | ||
"classmap" : ["tests"] | ||
}, | ||
|
||
"config" : { | ||
"config" : { | ||
"optimize-autoloader" : true | ||
}, | ||
|
||
"extra" : { | ||
"extra" : { | ||
"branch-alias" : { | ||
"dev-master" : "4.x-dev" | ||
} | ||
|