Skip to content

Commit

Permalink
#50 再度チェックアウトする
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Jul 19, 2023
1 parent 04ae20f commit f6f4291
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php-scoper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ on:

jobs:
setup-php-scoper:
name: Do PHP Scoper
runs-on: ubuntu-latest
steps:
- name: Do PHP Scoper
- uses: actions/checkout@master

- name: Add Prefix
if: inputs.scoper
run: |
composer global require humbug/php-scoper
~/.composer/vendor/bin/php-scoper add-prefix --output-dir=vendor-prefixed --force
composer dump-autoload --working-dir vendor-prefixed --classmap-authoritative
composer scoper-patch
- name: Cleanup PHP Scoper
- name: Cleanup Vendor
if: inputs.scoper
run: rm -rf vendor

- name: Skip Scoper
- name: Skip PHP Scoper
if: ! inputs.scoper
run: echo "Skipping Scoper"
3 changes: 2 additions & 1 deletion .github/workflows/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ jobs:
- name: Build Package
run: bash bin/build.sh

- uses: ./.github/workflows/php-scoper.yml
- uses: kuno1/ga-communicator/.github/workflows/php-scoper.yml
name: Do PHP Scoper
with:
scoper: true

Expand Down

0 comments on commit f6f4291

Please sign in to comment.