-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (37 loc) · 907 Bytes
/
build.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
name: Build
on:
push:
branches: [master]
pull_request:
jobs:
tests:
services:
mailhog:
image: mailhog/mailhog:v1.0.0
env:
MH_SMTP_BIND_ADDR: 0.0.0.0:2025
MH_API_BIND_ADDR: 0.0.0.0:9025
MH_UI_BIND_ADDR: 0.0.0.0:9025
ports:
- 2025:2025
- 9025:9025
runs-on: ubuntu-22.04
name: Test
strategy:
fail-fast: false
matrix:
php: ["7.2", "7.3", "7.4", "8.0"]
composer-flags: ["", "--prefer-lowest"]
env:
COMPOSER_ROOT_VERSION: dev-master
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: pcov
- name: Install dependencies
run: composer update ${{ matrix.composer-flags }}
- name: Run tests
run: make test