chore(deps): bump ip from 1.1.5 to 1.1.9 in /docs/v3 #505
Workflow file for this run
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
name: Unit Tests | |
on: push | |
env: | |
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361 | |
COMPOSER_ROOT_VERSION: "dev-master" | |
jobs: | |
provide_php_versions_json: | |
runs-on: ubuntu-latest | |
steps: | |
# git clone + use PHP + composer install | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer:v2 | |
- run: composer install --no-progress --ansi | |
- | |
# to see the output | |
run: vendor/bin/easy-ci php-versions-json | |
# here we create the json, we need the "id:" so we can use it in "outputs" bellow | |
- | |
id: output_data | |
run: echo "::set-output name=matrix::$(vendor/bin/easy-ci php-versions-json)" | |
# here, we save the result of this 1st phase to the "outputs" | |
outputs: | |
matrix: ${{ steps.output_data.outputs.matrix }} | |
unit_tests: | |
needs: provide_php_versions_json | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ${{ fromJson(needs.provide_php_versions_json.outputs.matrix) }} | |
name: PHP ${{ matrix.php }} tests | |
steps: | |
- uses: actions/checkout@v3 | |
# required for "git tag" presence for changelog-linker git tags resolver; default is 1 | |
# https://github.com/actions/checkout#fetch-all-tags | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, max_execution_time=180 | |
coverage: xdebug | |
tools: php-cs-fixer, phpunit, composer:v2 | |
# composer install cache - https://github.com/ramsey/composer-install | |
- | |
if: "matrix.php == 7.3" | |
run: composer update --no-progress --ansi --prefer-lowest | |
- | |
if: "matrix.php == 7.4" | |
uses: "ramsey/composer-install@v2" | |
- | |
if: "matrix.php >= 8" | |
uses: "ramsey/composer-install@v2" | |
with: | |
composer-options: "--ignore-platform-req php" | |
- | |
run: vendor/bin/phpunit |