Skip to content

feat: add php 8.4-rc support #96

feat: add php 8.4-rc support

feat: add php 8.4-rc support #96

Workflow file for this run

name: Test LocalGov Drupal
on:
push:
branches:
- php*
pull_request:
branches:
- php*
jobs:
test:
name: Build and test LocalGov Drupal
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
localgov-version:
- '3.x'
steps:
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
- uses: actions/checkout@v2
- name: Create LocalGov Drupal project
run: composer create-project --stability dev localgovdrupal/localgov-project ./html "${{ matrix.localgov-version }}"
- name: Obtain all dev dependencies for LocalGov Drupal
run: jq --raw-output '.packages[] | select(.name | startswith("localgovdrupal/")) | ."require-dev" | values | to_entries[] | @sh "\(.key):\(.value)"' ./html/composer.lock | sort | uniq | xargs composer --working-dir=./html require --dev --no-interaction
- name: Start Docker environment
run: docker compose up -d
- name: Run tests
run: ./run-tests.sh
shell: bash