This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix php code sniffer autoloading in phar
- Loading branch information
1 parent
06c6b8c
commit e4798be
Showing
5 changed files
with
173 additions
and
83 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,50 +73,6 @@ jobs: | |
name: Run | ||
run: composer rector | ||
|
||
ecs_phar_compile: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- | ||
name: Setup PHP | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: 7.2 | ||
coverage: none | ||
|
||
- | ||
run: | | ||
cd packages/EasyCodingStandard/compiler | ||
composer install | ||
bin/compile | ||
php build/box.phar info ../tmp/ecs.phar | ||
../tmp/ecs.phar | ||
cd .. | ||
# Deploy PHAR to https://github.com/Symplify/EasyCodingStandardPrefixed | ||
# reuse tmp/rector.phar from previous job | ||
git clone https://${ACCESS_TOKEN}@github.com/Symplify/EasyCodingStandardPrefixed.git > /dev/null 2>&1 | ||
cp tmp/ecs.phar EasyCodingStandardPrefixed/ecs.phar | ||
cp tmp/ecs.phar EasyCodingStandardPrefixed/ecs | ||
cd EasyCodingStandardPrefixed | ||
git config user.email "[email protected]" | ||
git config user.name "Github Actions" | ||
git add ecs ecs.phar | ||
if [ "${TRAVIS_TAG}" != "" ]; then COMMIT_MSG="ECS ${TRAVIS_TAG}"; else COMMIT_MSG="Updated ECS to commit ${TRAVIS_COMMIT}"; fi | ||
git commit -m "${COMMIT_MSG}" | ||
git push --quiet origin master | ||
if [ "${TRAVIS_TAG}" != "" ]; then git tag "${TRAVIS_TAG}" && git push --quiet origin ${TRAVIS_TAG}; fi | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
|
||
binary_files: | ||
runs-on: ubuntu-latest | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Prefixed ECS Deploy | ||
|
||
on: | ||
pull_request: null | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ecs_phar_compile: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- | ||
name: Setup PHP | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: 7.2 | ||
coverage: none | ||
|
||
- | ||
name: Install | ||
run: | | ||
# install | ||
cd packages/EasyCodingStandard/compiler | ||
composer install | ||
- | ||
name: Compile ecs.phar with Box and PHP Scoper | ||
run: | | ||
# compile | ||
cd packages/EasyCodingStandard/compiler | ||
bin/compile | ||
- | ||
name: Run ecs.phar | ||
run: | | ||
cd packages/EasyCodingStandard/compiler | ||
../tmp/ecs.phar | ||
- | ||
name: Run ecs.phar with PSR-12 set | ||
run: | | ||
cd packages/EasyCodingStandard/compiler | ||
../tmp/ecs.phar check ../src --set psr12 --dry-run --debug | ||
# Deploy PHAR to https://github.com/Symplify/EasyCodingStandardPrefixed | ||
- | ||
name: Publish ecs.phar to Symplify/EasyCodingStandardPrefixed | ||
run: | | ||
cd packages/EasyCodingStandard | ||
# reuse tmp/ecs.phar from previous job | ||
git clone https://${ACCESS_TOKEN}@github.com/Symplify/EasyCodingStandardPrefixed.git > /dev/null 2>&1 | ||
cp tmp/ecs.phar EasyCodingStandardPrefixed/ecs.phar | ||
cp tmp/ecs.phar EasyCodingStandardPrefixed/ecs | ||
cd EasyCodingStandardPrefixed | ||
git config user.email "[email protected]" | ||
git config user.name "Github Actions" | ||
git add ecs ecs.phar | ||
if [ "${TRAVIS_TAG}" != "" ]; then COMMIT_MSG="ECS ${TRAVIS_TAG}"; else COMMIT_MSG="Updated ECS to commit ${TRAVIS_COMMIT}"; fi | ||
git commit -m "${COMMIT_MSG}" | ||
git push --quiet origin master | ||
if [ "${TRAVIS_TAG}" != "" ]; then git tag "${TRAVIS_TAG}" && git push --quiet origin ${TRAVIS_TAG}; fi | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
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
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
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