Skip to content

Commit

Permalink
Release v7 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Jul 9, 2023
1 parent 2c3bb2c commit c1f7f1d
Show file tree
Hide file tree
Showing 7 changed files with 540 additions and 390 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,58 @@ jobs:
with:
name: Reports - ${{ matrix.php-version }}
path: build/


phar:
name: Phar
runs-on: ubuntu-latest
needs: [ phpunit, linters, report ]
strategy:
matrix:
php-version: [ 8.1, 8.2 ]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: composer
extensions: ast

- name: Build the project
run: make build --no-print-directory

- name: Building Phar binary file
run: make build-phar --no-print-directory

- name: Trying to use the phar file
run: ./build/composer-graph.phar build --help

- name: Upload Artifacts
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: Reports - ${{ matrix.php-version }}
path: build/


docker:
name: Docker
runs-on: ubuntu-latest
needs: [ phar ]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 🐳 Building Docker Image
run: make build-docker

- name: Trying to use the Docker Image
run: docker run --rm jbzoo-composer-graph build --help
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# JBZoo Toolbox - Composer-Graph.
#
# 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.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/Composer-Graph
#

FROM php:8.1-cli-alpine
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions \
&& sync \
&& install-php-extensions \
opcache \
gd \
zip \
@composer

ENV COMPOSER_ALLOW_SUPERUSER=1
COPY . /app
RUN cd /app \
&& composer install --no-dev --optimize-autoloader --no-progress \
&& composer clear-cache

# Experimental. Forced colored output
ENV TERM_PROGRAM=Hyper

ENTRYPOINT ["php", "/app/composer-graph"]
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ update: ##@Project Install/Update all 3rd party dependencies
@composer update $(JBZOO_COMPOSER_UPDATE_FLAGS)


build-docker: ##@Project Building Docker Image
$(call title,"Building Docker Image")
@docker build -t jbzoo-composer-graph .


test-all: ##@Project Run all project tests at once
@make test
@make codestyle
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# JBZoo / Composer-Graph

[![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)
[![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)
[![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)


## Installation
Expand Down
6 changes: 1 addition & 5 deletions box.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
"git-version" : "git-version",

"finder" : [
{
"in" : "vendor",
"name" : "*.php",
"exclude" : ["Tests", "tests", "test"]
}
{"in" : "vendor"}
]
}
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
"require" : {
"php" : "^8.1",

"jbzoo/data" : "7.x-dev",
"jbzoo/mermaid-php" : "7.x-dev",
"jbzoo/utils" : "7.x-dev",
"jbzoo/cli" : "7.x-dev",
"jbzoo/data" : "^7.0",
"jbzoo/mermaid-php" : "^7.0",
"jbzoo/utils" : "^7.0",
"jbzoo/cli" : "^7.0",

"symfony/console" : ">=4.4"
},

"require-dev" : {
"jbzoo/toolbox-dev" : "7.x-dev",
"jbzoo/toolbox-dev" : "^7.0",
"symfony/process" : ">=4.4"
},

Expand All @@ -47,7 +47,8 @@

"config" : {
"optimize-autoloader" : true,
"allow-plugins" : {"composer/package-versions-deprecated" : true}
"allow-plugins" : {"composer/package-versions-deprecated" : true},
"platform-check" : true
},

"extra" : {
Expand Down
Loading

0 comments on commit c1f7f1d

Please sign in to comment.