Skip to content

Commit

Permalink
Merge 6dab122 into e1bd399
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed May 15, 2021
2 parents e1bd399 + 6dab122 commit bf208f2
Show file tree
Hide file tree
Showing 56 changed files with 10,347 additions and 302 deletions.
Binary file added .github/assets/github-actions-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/github-actions-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/gitlab-code-quality-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-checkstyle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-phan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-phpcpd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-phpmd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-phpmnd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-phpstan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/phpstorm-psalm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/teamcity-as-code-inspections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/teamcity-as-failed-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 12 additions & 38 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ jobs:
strategy:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
experimental: [ false ]
composer_flags: [ "--prefer-lowest", "" ]
build-way: ["build", "update"]
composer_flags: [ "--prefer-lowest", "" ]
include:
- php-version: "8.0"
experimental: true
- php-version: "8.1"
experimental: true
- php-version: 8.0
build-way: update
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -60,17 +57,15 @@ jobs:
tools: composer

- name: Build the Project
continue-on-error: ${{ matrix.experimental }}
run: make ${{ matrix.build-way }} --no-print-directory

- name: 🧪 PHPUnit Tests
continue-on-error: ${{ matrix.experimental }}
if: ${{ !(matrix.build-way == 'build' && matrix.php-version == 8.0) }}
run: make test --no-print-directory

- name: Codecov Report
uses: codecov/codecov-action@v1
if: ${{ matrix.build-way == 'update' && matrix.php-version == '7.4' }}
continue-on-error: ${{ matrix.experimental }}
if: ${{ matrix.php-version == 7.4 || matrix.php-version == 8.0 }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '*.xml'
Expand All @@ -83,13 +78,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.4 ]
experimental: [ false ]
include:
- php-version: "8.0"
experimental: true
- php-version: "8.1"
experimental: true
php-version: [ 7.2, 7.3, 7.4 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -103,11 +92,9 @@ jobs:
tools: composer

- name: Build the Project
continue-on-error: ${{ matrix.experimental }}
run: make update --no-print-directory

- name: 👍 Code Quality
continue-on-error: ${{ matrix.experimental }}
run: make codestyle --no-print-directory


Expand All @@ -118,10 +105,9 @@ jobs:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
experimental: [ false ]
build-way: ["build", "update"]
include:
- php-version: "8.0"
experimental: true
- php-version: "8.1"
- php-version: 8.0
experimental: true
steps:
- name: Checkout code
Expand All @@ -137,17 +123,11 @@ jobs:

- name: Building Phar binary file
continue-on-error: ${{ matrix.experimental }}
run: make build --no-print-directory
run: make ${{ matrix.build-way }} --no-print-directory

- name: Trying to use the phar file
continue-on-error: ${{ matrix.experimental }}
run: |
echo "::group::Try to run it"
./build/ci-report-converter.phar
echo "::endgroup::"
echo "::group::Show help message"
./build/ci-report-converter.phar --help
echo "::endgroup::"
run: ./build/ci-report-converter.phar convert --help


docker:
Expand All @@ -163,13 +143,7 @@ jobs:
run: make build-docker

- name: Trying to use the Docker Image
run: |
echo "::group::Try to run it"
docker run --rm jbzoo-ci-report-converter
echo "::endgroup::"
echo "::group::Show help message"
docker run --rm jbzoo-ci-report-converter convert --help
echo "::endgroup::"
run: docker run --rm jbzoo-ci-report-converter convert --help


release:
Expand All @@ -192,4 +166,4 @@ jobs:
with:
body: ${{steps.github_release.outputs.changelog}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ build
vendor
phpunit.xml
*.cache
ci-report-converter.phar
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ build-docker:
update: ##@Project Install/Update all 3rd party dependencies
@echo "Composer flags: $(JBZOO_COMPOSER_UPDATE_FLAGS)"
@composer update --optimize-autoloader --no-progress $(JBZOO_COMPOSER_UPDATE_FLAGS)
@$(PHP_BIN) `pwd`/vendor/bin/composer-diff
@make create-symlink
@make build-phar

Expand Down
Loading

0 comments on commit bf208f2

Please sign in to comment.