Skip to content

[For dev: update with main] Issue #535: Change multidev deploy to manual only: tag based #2581

[For dev: update with main] Issue #535: Change multidev deploy to manual only: tag based

[For dev: update with main] Issue #535: Change multidev deploy to manual only: tag based #2581

name: Composer Plugin
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
Test-Composer-Plugin:
runs-on: ubuntu-22.04
strategy:
matrix:
php-version: [ 8.1, 8.2, 8.3 ]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- run: composer install
- run: ./vendor/bin/phpunit