-
-
Notifications
You must be signed in to change notification settings - Fork 50
32 lines (30 loc) · 865 Bytes
/
php.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 build"
on:
pull_request:
push:
branches:
- "master"
jobs:
build:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
fail-fast: false
matrix:
php-versions: ['7.3', '7.4']
steps:
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
extensions: intl, json, mbstring, xdebug, xml
php-version: "${{ matrix.php-versions }}"
coverage: xdebug
- name: Checkout
uses: actions/checkout@v2
- name: "Validate composer.json and composer.lock"
run: "composer validate"
- name: "Install dependencies"
run: "composer install --prefer-source --no-progress --no-suggest"
- name: "Run test suite"
run: "composer test"