Skip to content

Commit

Permalink
Workflow fixes for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCT Bartosz Pachołek committed Nov 19, 2019
1 parent 193303c commit 33a444a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ jobs:

steps:
- uses: actions/checkout@v1

with:
ref: master

- name: reattach HEAD to Head Ref
run: git checkout "$(echo ${{ github.head_ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
if: github.head_ref != ''
- name: reattach HEAD to Ref
run: git checkout "$(echo ${{ github.ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
if: github.head_ref == ''

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"phpunit/phpunit": "^7.5",
"mikey179/vfsstream": "^1.6.8",
"php-mock/php-mock-phpunit": "^2.5",
"satooshi/php-coveralls": "^2.1"
"php-coveralls/php-coveralls": "^2.1"
},
"autoload": {
"psr-4": {
Expand All @@ -41,7 +41,7 @@
"./vendor/phpunit/phpunit/phpunit"
],
"generate-coveralls": [
"./vendor/satooshi/php-coveralls/bin/php-coveralls -v"
"./vendor/php-coveralls/php-coveralls/bin/php-coveralls -v"
]

}
Expand Down

0 comments on commit 33a444a

Please sign in to comment.