forked from recurly/recurly-client-php
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 795 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
name: CI
on: [push]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }} tests
strategy:
matrix:
php: [7.2, 7.3, 7.4]
steps:
- uses: actions/checkout@v3
- name: Setup PHP
# Using tag 2.18.0
uses: shivammathur/setup-php@448bd61c6fe9db2113173467e4c22b87ddc2971a
with:
php-version: ${{ matrix.php }}
coverage: xdebug2
tools: composer:2.2
- run: ./scripts/build
- run: ./scripts/test
buildall:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Build (matrix)
needs: build
steps:
- name: Check build matrix status
if: ${{ needs.build.result != 'success' }}
run: exit 1