Skip to content

Commit

Permalink
chore: update compare.yml
Browse files Browse the repository at this point in the history
"running the tool in github action without docker is also twice as fast"
See Nyholm/roave-bc-check-docker#32 (comment)
  • Loading branch information
kenjis committed Sep 9, 2023
1 parent acbf935 commit 170ece6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ jobs:
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install roave/backward-compatibility-check.
run: composer require --dev roave/backward-compatibility-check

- name: Run comparison (limited)
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
uses: docker://nyholm/roave-bc-check-ga
run: vendor/bin/roave-backward-compatibility-check

- name: Run comparison (authenticated)
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
uses: docker://nyholm/roave-bc-check-ga
run: vendor/bin/roave-backward-compatibility-check
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

0 comments on commit 170ece6

Please sign in to comment.