-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 958 Bytes
/
phpunit.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: PHPUnit
on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:
branches:
- master
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
include:
- php-version: "8.3"
imagick: "php83-pecl-imagick"
- php-version: "8.2"
imagick: "php82-pecl-imagick"
- php-version: "8.1"
imagick: "php81-pecl-imagick"
steps:
- name: Install dependencies for test
run: |
apk add --no-cache ${{ matrix.imagick }}
- uses: actions/checkout@v4
- run: composer install
- run: ./vendor/bin/phpunit
Documentation:
if: github.ref == 'refs/heads/master'
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: php
project: ${{ github.event.repository.name }}
secrets: inherit