Skip to content

Commit 7aab7da

Browse files
authored
Merge pull request #207 from clue-labs/github-ci
Use GitHub Actions for continuous integration (CI) for legacy v0.9.x
2 parents 187902e + db35934 commit 7aab7da

File tree

4 files changed

+47
-30
lines changed

4 files changed

+47
-30
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/.gitattributes export-ignore
2+
/.github/workflows/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
4-
/examples/ export-ignore
54
/phpunit.xml.dist export-ignore
65
/phpunit.xml.legacy export-ignore
76
/tests/ export-ignore

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
php:
13+
- 8.0
14+
- 7.4
15+
- 7.3
16+
- 7.2
17+
- 7.1
18+
- 7.0
19+
- 5.6
20+
- 5.5
21+
- 5.4
22+
- 5.3
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
- run: composer install
29+
- run: vendor/bin/phpunit --coverage-text
30+
if: ${{ matrix.php >= 7.3 }}
31+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
32+
if: ${{ matrix.php < 7.3 }}
33+
34+
PHPUnit-hhvm:
35+
name: PHPUnit (HHVM)
36+
runs-on: ubuntu-18.04
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: azjezz/setup-hhvm@v1
40+
with:
41+
version: lts-3.30
42+
- run: hhvm $(which composer) install
43+
- run: hhvm vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# graphp/graph [![Build Status](https://travis-ci.org/graphp/graph.png?branch=master)](https://travis-ci.org/graphp/graph)
1+
# graphp/graph
2+
3+
[![CI status](https://github.com/graphp/graph/actions/workflows/ci.yml/badge.svg?branch=v0.9.x)](https://github.com/graphp/graph/actions)
24

35
GraPHP is the mathematical graph/network library written in PHP.
46

0 commit comments

Comments
 (0)