Skip to content

Remove brew update-reset #22

Remove brew update-reset

Remove brew update-reset #22

Workflow file for this run

name: "CI"
on:
pull_request:
push:
jobs:
tests:
runs-on: 'macos-latest'
continue-on-error: true
strategy:
fail-fast: true
matrix:
php-version:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- run: |
set -xe
brew --version
brew tap shivammathur/php
brew update && brew upgrade --greedy --force
brew install shivammathur/php/php@${{ matrix.php-version }}
./phpswitch.sh ${{ matrix.php-version }} -s
switched=$(php -v | grep -e '^PHP' | cut -d' ' -f2 | cut -d. -f1,2)
if [ "${{ matrix.php-version }}" != "$switched" ]; then
echo "Expected ${{ matrix.php-version }} got $switched"
exit 1
fi