WIP: make sure we install php-interop 1 when asking for the psr factory #78
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: Plugin | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
plugin: | |
name: Plugin test with Composer ${{ matrix.composer }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- composer: v1 | |
- composer: v2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.1 | |
tools: composer:${{ matrix.composer }} | |
- name: Check Auto-install | |
run: | | |
mkdir /tmp/plugin-auto-install | |
# replace the relative path for the repository url with an absolute path for composer v1 compatibility | |
jq '.repositories[0].url="'$(pwd)'"' tests/plugin/auto-install/composer.json > /tmp/plugin-auto-install/composer.json | |
cd /tmp/plugin-auto-install | |
composer update | |
composer show http-interop/http-factory-guzzle -q | |
- name: Check Pinning | |
run: | | |
cp -a tests/plugin/pinning /tmp/plugin-pinning | |
# replace the relative path for the repository url with an absolute path for composer v1 compatibility | |
jq '.repositories[0].url="'$(pwd)'"' tests/plugin/pinning/composer.json > /tmp/plugin-pinning/composer.json | |
cd /tmp/plugin-pinning | |
composer update | |
[ 'Slim\Psr7\Factory\RequestFactory-MyClient' == $(php test.php) ] |