Skip to content

chore: update PHP/Composer/Magento versions and defaults for actions #8

chore: update PHP/Composer/Magento versions and defaults for actions

chore: update PHP/Composer/Magento versions and defaults for actions #8

name: Get Composer Version
on:
push:
branches:
- main
- testing
paths:
- ".github/workflows/_internal-get-composer-version.yaml"
- "get-composer-version/**"
- "!(**/*.md)"
pull_request:
branches:
- main
paths:
- ".github/workflows/_internal-get-composer-version.yaml"
- "get-composer-version/**"
- "!(**/*.md)"
jobs:
get-composer-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2.7.7
- uses: ./get-composer-version
id: composer-version
- name: Fail if versions do not match
if: steps.composer-version.outputs.version != '2.7.7'
shell: bash
run: echo "${{ steps.composer-version.outputs.version }}" && exit 1