Add fixture for calls in tests (#76) #50
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: Downgraded Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
downgrade_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: "actions/checkout@v2" | |
- | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: 8.1 | |
coverage: none | |
- uses: "ramsey/composer-install@v2" | |
# downgrade /src to PHP 7.2 | |
- run: vendor/bin/rector process src --config build/rector-downgrade-php-72.php --ansi | |
- run: vendor/bin/ecs check src --fix --ansi | |
# copy PHP 7.2 composer | |
- run: cp build/composer-php-72.json composer.json | |
# clear the dev files | |
- run: rm -rf build .github tests stubs ecs.php phpstan.neon phpunit.xml | |
# setup git user | |
- | |
run: | | |
git config user.email "action@github.com" | |
git config user.name "GitHub Action" | |
# publish to the same repository with a new tag | |
- | |
name: "Tag Downgraded Code" | |
run: | | |
git commit -a -m "release PHP 7.2 downgraded ${GITHUB_REF#refs/tags/}" | |
git tag "${GITHUB_REF#refs/tags/}.72" | |
git push origin "${GITHUB_REF#refs/tags/}.72" |