Skip to content

Merge pull request #37 from yuki777/ci-install-php #92

Merge pull request #37 from yuki777/ci-install-php

Merge pull request #37 from yuki777/ci-install-php #92

Workflow file for this run

name: Test
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
test: [
tests/Mongodb503Test.php,
tests/Mongodb4410Test.php,
tests/Mysql5731Test.php,
tests/Mysql8030Test.php,
tests/Postgresql124Test.php,
tests/Postgresql132Test.php,
tests/Redis626Test.php,
tests/Redis6016Test.php
]
steps:
- uses: actions/checkout@v4
- name: Install PHP and Composer on macOS
if: matrix.os == 'macos-latest'
run: |
brew update
brew install php
brew install composer
- name: Install PHP and Composer on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y php
sudo apt-get install -y composer
- name: Composer install
run: |
composer install
- name: Run tests
run: |
./vendor/bin/phpunit ${{ matrix.test }}