Skip to content

Update github-actions #757

Update github-actions

Update github-actions #757

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Backward Compatibility"
on:
pull_request:
push:
branches:
- "2.3.x"
permissions:
contents: read
jobs:
backward-compatibility:
name: "Backward Compatibility"
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2
with:
coverage: "none"
php-version: "8.3"
- name: "Install dependencies"
run: "composer install --no-dev --no-interaction --no-progress --no-suggest"
- name: "Install BackwardCompatibilityCheck"
run: "composer global require --dev roave/backward-compatibility-check"
- name: "Check"
run: '"$(composer global config bin-dir --absolute)/roave-backward-compatibility-check"'