Skip to content

Commit

Permalink
Fix Roave BC Check ownership issue
Browse files Browse the repository at this point in the history
Error: fatal: detected dubious ownership in repository at '/github/workspace'
Solved with: Running Roave BC check via composer require
  • Loading branch information
youwe-petervanderwal committed May 27, 2024
1 parent 6b26a58 commit 937bad4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
stack-version: 7.4.1

- uses: actions/checkout@v2
with:
fetch-depth: 0 # This is needed for Roave BC check

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -58,11 +60,11 @@ jobs:
- name: PHPUnit tests
run: vendor/bin/phpunit tests

roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
- name: Install roave/backward-compatibility-check.
run: |
# Install BC check tool in separate directory to avoid dependency conflicts
mkdir -p test-tools/bc-check
composer require --working-dir="test-tools/bc-check" roave/backward-compatibility-check --no-plugins
steps:
- uses: actions/checkout@v2
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
- name: Run roave/backward-compatibility-check.
run: test-tools/bc-check/vendor/bin/roave-backward-compatibility-check --format=github-actions

0 comments on commit 937bad4

Please sign in to comment.