Skip to content

Commit 77b7c30

Browse files
committed
Migrate from Travis to GitHub Actions
1 parent 5d008c8 commit 77b7c30

File tree

4 files changed

+35
-24
lines changed

4 files changed

+35
-24
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*.svg text
1010

1111
/.gitattributes export-ignore
12+
/.github export-ignore
1213
/.gitignore export-ignore
13-
/.travis.yml export-ignore
1414
/phpunit.xml export-ignore
1515
/tests export-ignore

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Run unit tests"
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
env:
8+
COMPOSER_MEMORY_LIMIT: -1
9+
10+
jobs:
11+
test:
12+
name: "Build"
13+
runs-on: ubuntu-latest
14+
strategy:
15+
max-parallel: 12
16+
matrix:
17+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Setup PHP ${{ matrix.php }}
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
extensions: exif,json,mbstring,dom
27+
28+
- name: Install composer dependencies
29+
uses: ramsey/composer-install@v2
30+
31+
- name: Run unit tests
32+
run: ./vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SVG file parsing / rendering library
22

3-
[![Build Status](https://travis-ci.org/PhenX/php-svg-lib.svg?branch=master)](https://travis-ci.org/PhenX/php-svg-lib)
4-
[![Coverage Status](https://coveralls.io/repos/PhenX/php-svg-lib/badge.svg)](https://coveralls.io/r/PhenX/php-svg-lib)
3+
[![Build Status](https://github.com/phenx/php-svg-lib/workflows/test/badge.svg)](https://github.com/phenx/php-svg-lib/actions)
54

65

76
[![Latest Stable Version](https://poser.pugx.org/phenx/php-svg-lib/v/stable)](https://packagist.org/packages/phenx/php-svg-lib)
@@ -11,4 +10,4 @@
1110

1211
The main purpose of this lib is to rasterize SVG to a surface which can be an image or a PDF for example, through a `\Svg\Surface` PHP interface.
1312

14-
This project was initialized by the need to render SVG documents inside PDF files for the [DomPdf](http://dompdf.github.io) project.
13+
This project was initialized by the need to render SVG documents inside PDF files for the [DomPdf](http://dompdf.github.io) project.

0 commit comments

Comments
 (0)