Skip to content

Commit 899da8e

Browse files
committed
revert: drop temporary bc-check bypass
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b74509f commit 899da8e

1 file changed

Lines changed: 3 additions & 25 deletions

File tree

.github/workflows/bc-check.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,15 @@ jobs:
1313
- uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
16-
- name: Detect backward-compatibility baseline
17-
id: bc_base
18-
run: |
19-
tag=$(git tag --list 'v*' --sort=-version:refname | head -n1)
20-
21-
if [[ -z "$tag" ]]; then
22-
echo "skip=true" >> "$GITHUB_OUTPUT"
23-
echo "No release tag found yet; skipping backward-compatibility check until the first tagged release."
24-
exit 0
25-
fi
26-
27-
echo "skip=false" >> "$GITHUB_OUTPUT"
28-
echo "ref=$tag" >> "$GITHUB_OUTPUT"
29-
echo "Using backward-compatibility baseline: $tag"
3016
- name: Detect minimum PHP from composer.json
31-
if: steps.bc_base.outputs.skip != 'true'
3217
id: php_min
3318
run: |
3419
php_version=$(grep -Po '"php"\s*:\s*"\K[^"]+' composer.json | grep -Eo '[0-9]+\.[0-9]+' | head -n1)
3520
[[ -n "$php_version" ]] || { echo "Could not determine minimum PHP version"; exit 1; }
3621
echo "version=$php_version" >> "$GITHUB_OUTPUT"
3722
- uses: shivammathur/setup-php@v2
38-
if: steps.bc_base.outputs.skip != 'true'
3923
with:
4024
php-version: ${{ steps.php_min.outputs.version }}
41-
- name: Skip BC check before first release
42-
if: steps.bc_base.outputs.skip == 'true'
43-
run: echo "Skipping backward-compatibility check because the package has no tagged release yet."
44-
- if: steps.bc_base.outputs.skip != 'true'
45-
run: composer install --no-interaction --prefer-dist
46-
- if: steps.bc_base.outputs.skip != 'true'
47-
run: composer bin qa install --no-interaction --prefer-dist
48-
- if: steps.bc_base.outputs.skip != 'true'
49-
run: vendor-bin/qa/vendor/roave/backward-compatibility-check/bin/roave-backward-compatibility-check --from="${{ steps.bc_base.outputs.ref }}" --to=HEAD
25+
- run: composer install --no-interaction --prefer-dist
26+
- run: composer bin qa install --no-interaction --prefer-dist
27+
- run: composer run bc:check

0 commit comments

Comments
 (0)