-
Notifications
You must be signed in to change notification settings - Fork 91
44 lines (37 loc) · 947 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 install --force --overwrite 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