From d00e632c360cfb383999e1ccfe910f426615fb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 19 Nov 2020 23:28:12 +0100 Subject: [PATCH] Compare against sha of base branch This helps in situations when you maintain 2 major branches, which is our case. --- .github/workflows/continuous-integration.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4a62acafdf..7a554270a9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -10,10 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: fetch tags - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + with: + fetch-depth: 0 + - name: Roave BC Check uses: docker://nyholm/roave-bc-check-ga + with: + args: --from=${{ github.event.pull_request.base.sha }} phpunit: name: "PHPUnit"