Skip to content

Commit 76d1419

Browse files
authored
Merge pull request #57 from SimonFrings/ci
Use GitHub actions for continuous integration (CI)
2 parents eff70fe + 790fbba commit 76d1419

File tree

5 files changed

+74
-37
lines changed

5 files changed

+74
-37
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.gitattributes export-ignore
2+
/.github/workflows export-ignore
3+
/.gitignore export-ignore
4+
/examples/ export-ignore
5+
/phpunit.xml.dist export-ignore
6+
/tests/ export-ignore

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
name: PHPUnit (PHP ${{ matrix.php }})
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
php:
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+
coverage: xdebug
29+
- run: composer install
30+
- run: vendor/bin/phpunit --coverage-text
31+
32+
PHPUnit-hhvm:
33+
name: PHPUnit (HHVM)
34+
runs-on: ubuntu-18.04
35+
continue-on-error: true
36+
steps:
37+
- uses: actions/checkout@v2
38+
- uses: azjezz/setup-hhvm@v1
39+
with:
40+
version: lts-3.30
41+
- run: hhvm $(which composer) install
42+
- run: hhvm vendor/bin/phpunit
43+
44+
Build-phar:
45+
name: Build phar
46+
runs-on: ubuntu-20.04
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: shivammathur/setup-php@v2
50+
with:
51+
php-version: '7.2'
52+
tools: composer:v1
53+
- run: composer install
54+
- run: composer build
55+
56+
Test-dependency-installation:
57+
name: Test dependency installation
58+
runs-on: ubuntu-20.04
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: shivammathur/setup-php@v2
62+
with:
63+
php-version: '7.2'
64+
- run: composer install --dry-run --working-dir=tests/install-as-dep

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/vendor
21
/build/
32
/graph-composer-*.phar
3+
/vendor/

.travis.yml

Lines changed: 0 additions & 35 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-
# clue/graph-composer [![Build Status](https://travis-ci.org/clue/graph-composer.png?branch=master)](https://travis-ci.org/clue/graph-composer)
1+
# clue/graph-composer
2+
3+
[![CI status](https://github.com/clue/graph-composer/workflows/CI/badge.svg)](https://github.com/clue/graph-composer/actions)
24

35
Graph visualization for your project's `composer.json` and its dependencies:
46

0 commit comments

Comments
 (0)