-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (66 loc) · 1.92 KB
/
main.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Main
on:
workflow_dispatch:
push:
branches:
- main
- master
- release/**
pull_request:
branches:
- main
- master
- release/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- name: Get source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-values: post_max_size=256M, max_execution_time=180
- name: Check package
run: |
sudo pear list
sudo pear channel-update pear.php.net
sudo pear upgrade --force pear/pear
sudo pear list
sudo pear install --force package.xml
sudo pear list
sudo pear package
sudo pear package-validate
sudo pear install --force *.tgz
sudo pear list
# For some reason ttf-mscorefonts-installer doesn't work
# so we only install Verdana
- name: Download and install Verdana font
run: |
sudo apt install cabextract
curl -L -o verdan32.exe 'http://download.sourceforge.net/corefonts/verdan32.exe'
cabextract -d Image/Canvas/Fonts/ verdan32.exe
mv Image/Canvas/Fonts/Verdana.TTF Image/Canvas/Fonts/verdana.ttf
- name: Install pre-requisites and run test scripts
run: |
composer install
php tests/gradients.php > gradients.png
php tests/imagemap.php > imagemap.html
php tests/png.php
php tests/jpg.php
# php tests/ps.php
# php tests/pdf.php
php tests/svg.php
php tests/text.php > text.png
php tests/lineends.php > lineends.png