Skip to content

relationship_refactor #2

relationship_refactor

relationship_refactor #2

Workflow file for this run

name: PHP Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 8.1, 8.2, 8.3 ]
env:
MYSQL_HOST: localhost
MYSQL_USER: root
MYSQL_PASSWORD: root
PGSQL_HOST: localhost
PGSQL_USER: postgres
steps:
- uses: actions/checkout@v3
- name: Start MySQL
run: |
sudo systemctl start mysql
- name: Start PostgreSQL
run: |
sudo systemctl start postgresql
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test