File tree Expand file tree Collapse file tree 7 files changed +540
-390
lines changed
Expand file tree Collapse file tree 7 files changed +540
-390
lines changed Original file line number Diff line number Diff line change @@ -138,3 +138,58 @@ jobs:
138138 with :
139139 name : Reports - ${{ matrix.php-version }}
140140 path : build/
141+
142+
143+ phar :
144+ name : Phar
145+ runs-on : ubuntu-latest
146+ needs : [ phpunit, linters, report ]
147+ strategy :
148+ matrix :
149+ php-version : [ 8.1, 8.2 ]
150+ steps :
151+ - name : Checkout code
152+ uses : actions/checkout@v3
153+ with :
154+ fetch-depth : 0
155+
156+ - name : Setup PHP
157+ uses : shivammathur/setup-php@v2
158+ with :
159+ php-version : ${{ matrix.php-version }}
160+ coverage : xdebug
161+ tools : composer
162+ extensions : ast
163+
164+ - name : Build the project
165+ run : make build --no-print-directory
166+
167+ - name : Building Phar binary file
168+ run : make build-phar --no-print-directory
169+
170+ - name : Trying to use the phar file
171+ run : ./build/composer-graph.phar build --help
172+
173+ - name : Upload Artifacts
174+ uses : actions/upload-artifact@v3
175+ continue-on-error : true
176+ with :
177+ name : Reports - ${{ matrix.php-version }}
178+ path : build/
179+
180+
181+ docker :
182+ name : Docker
183+ runs-on : ubuntu-latest
184+ needs : [ phar ]
185+ steps :
186+ - name : Checkout code
187+ uses : actions/checkout@v3
188+ with :
189+ fetch-depth : 0
190+
191+ - name : 🐳 Building Docker Image
192+ run : make build-docker
193+
194+ - name : Trying to use the Docker Image
195+ run : docker run --rm jbzoo-composer-graph build --help
Original file line number Diff line number Diff line change 1+ #
2+ # JBZoo Toolbox - Composer-Graph.
3+ #
4+ # This file is part of the JBZoo Toolbox project.
5+ # For the full copyright and license information, please view the LICENSE
6+ # file that was distributed with this source code.
7+ #
8+ # @license MIT
9+ # @copyright Copyright (C) JBZoo.com, All rights reserved.
10+ # @see https://github.com/JBZoo/Composer-Graph
11+ #
12+
13+ FROM php:8.1-cli-alpine
14+ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
15+
16+ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
17+ RUN chmod +x /usr/local/bin/install-php-extensions \
18+ && sync \
19+ && install-php-extensions \
20+ opcache \
21+ gd \
22+ zip \
23+ @composer
24+
25+ ENV COMPOSER_ALLOW_SUPERUSER=1
26+ COPY . /app
27+ RUN cd /app \
28+ && composer install --no-dev --optimize-autoloader --no-progress \
29+ && composer clear-cache
30+
31+ # Experimental. Forced colored output
32+ ENV TERM_PROGRAM=Hyper
33+
34+ ENTRYPOINT ["php" , "/app/composer-graph" ]
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ update: ##@Project Install/Update all 3rd party dependencies
2929 @composer update $(JBZOO_COMPOSER_UPDATE_FLAGS )
3030
3131
32+ build-docker : # #@Project Building Docker Image
33+ $(call title,"Building Docker Image")
34+ @docker build -t jbzoo-composer-graph .
35+
36+
3237test-all : # #@Project Run all project tests at once
3338 @make test
3439 @make codestyle
Original file line number Diff line number Diff line change 11# JBZoo / Composer-Graph
22
33[ ![ CI] ( https://github.com/JBZoo/Composer-Graph/actions/workflows/main.yml/badge.svg?branch=master )] ( https://github.com/JBZoo/Composer-Graph/actions/workflows/main.yml?query=branch%3Amaster ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/JBZoo/Composer-Graph/badge.svg?branch=master )] ( https://coveralls.io/github/JBZoo/Composer-Graph?branch=master ) [ ![ Psalm Coverage] ( https://shepherd.dev/github/JBZoo/Composer-Graph/coverage.svg )] ( https://shepherd.dev/github/JBZoo/Composer-Graph ) [ ![ Psalm Level] ( https://shepherd.dev/github/JBZoo/Composer-Graph/level.svg )] ( https://shepherd.dev/github/JBZoo/Composer-Graph ) [ ![ CodeFactor] ( https://www.codefactor.io/repository/github/jbzoo/composer-graph/badge )] ( https://www.codefactor.io/repository/github/jbzoo/composer-graph/issues )
4- [ ![ Stable Version] ( https://poser.pugx.org/jbzoo/composer-graph/version )] ( https://packagist.org/packages/jbzoo/composer-graph/ ) [ ![ Total Downloads] ( https://poser.pugx.org/jbzoo/composer-graph/downloads )] ( https://packagist.org/packages/jbzoo/composer-graph/stats ) [ ![ Dependents] ( https://poser.pugx.org/jbzoo/composer-graph/dependents )] ( https://packagist.org/packages/jbzoo/composer-graph/dependents?order_by=downloads ) [ ![ Visitors ] ( https://visitor-badge.glitch.me/badge?page_id=jbzoo.composer-graph )] ( ) [ ![ GitHub License] ( https://img.shields.io/github/license/jbzoo/composer-graph )] ( https://github.com/JBZoo/Composer-Graph/blob/master/LICENSE )
4+ [ ![ Stable Version] ( https://poser.pugx.org/jbzoo/composer-graph/version )] ( https://packagist.org/packages/jbzoo/composer-graph/ ) [ ![ Total Downloads] ( https://poser.pugx.org/jbzoo/composer-graph/downloads )] ( https://packagist.org/packages/jbzoo/composer-graph/stats ) [ ![ Dependents] ( https://poser.pugx.org/jbzoo/composer-graph/dependents )] ( https://packagist.org/packages/jbzoo/composer-graph/dependents?order_by=downloads ) [ ![ GitHub License] ( https://img.shields.io/github/license/jbzoo/composer-graph )] ( https://github.com/JBZoo/Composer-Graph/blob/master/LICENSE )
55
66
77## Installation
Original file line number Diff line number Diff line change 1919 "git-version" : "git-version",
2020
2121 "finder" : [
22- {
23- "in" : "vendor",
24- "name" : "*.php",
25- "exclude" : ["Tests", "tests", "test"]
26- }
22+ {"in" : "vendor"}
2723 ]
2824}
Original file line number Diff line number Diff line change 2222 "require" : {
2323 "php" : " ^8.1" ,
2424
25- "jbzoo/data" : " 7.x-dev " ,
26- "jbzoo/mermaid-php" : " 7.x-dev " ,
27- "jbzoo/utils" : " 7.x-dev " ,
28- "jbzoo/cli" : " 7.x-dev " ,
25+ "jbzoo/data" : " ^7.0 " ,
26+ "jbzoo/mermaid-php" : " ^7.0 " ,
27+ "jbzoo/utils" : " ^7.0 " ,
28+ "jbzoo/cli" : " ^7.0 " ,
2929
3030 "symfony/console" : " >=4.4"
3131 },
3232
3333 "require-dev" : {
34- "jbzoo/toolbox-dev" : " 7.x-dev " ,
34+ "jbzoo/toolbox-dev" : " ^7.0 " ,
3535 "symfony/process" : " >=4.4"
3636 },
3737
4747
4848 "config" : {
4949 "optimize-autoloader" : true ,
50- "allow-plugins" : {"composer/package-versions-deprecated" : true }
50+ "allow-plugins" : {"composer/package-versions-deprecated" : true },
51+ "platform-check" : true
5152 },
5253
5354 "extra" : {
You can’t perform that action at this time.
0 commit comments