Skip to content

[PHP 8.2] ci: change chromedriver image to fix functional javascript tests #81

[PHP 8.2] ci: change chromedriver image to fix functional javascript tests

[PHP 8.2] ci: change chromedriver image to fix functional javascript tests #81

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.2'
- 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