Skip to content

Migrate GitHub Actions to Blacksmith runners #4

Migrate GitHub Actions to Blacksmith runners

Migrate GitHub Actions to Blacksmith runners #4

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Backward Compatibility"
on:
pull_request:
push:
branches:
- "master"
env:
COMPOSER_ROOT_VERSION: "1.0.x-dev"
jobs:
backward-compatibility:
name: "Backward Compatibility"
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.0"
- name: "Install dependencies"
run: "composer install --no-dev --no-interaction --no-progress --no-suggest"
- name: "Install BackwardCompatibilityCheck"
run: |
composer global config minimum-stability dev
composer global config prefer-stable true
composer global require --dev ondrejmirtes/backward-compatibility-check:^5.0.7
- name: "Check"
run: "$(composer global config bin-dir --absolute)/roave-backward-compatibility-check"