Skip to content

Commit 4ebc867

Browse files
authored
Merge pull request #14 from nanasess/github-actions
Migrate CI to GitHub Actions
2 parents d908c62 + 1fdf729 commit 4ebc867

File tree

3 files changed

+40
-67
lines changed

3 files changed

+40
-67
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
tags:
7+
- '*'
8+
paths:
9+
- '**'
10+
- '!*.md'
11+
pull_request:
12+
paths:
13+
- '**'
14+
- '!*.md'
15+
jobs:
16+
tests:
17+
name: CI
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ ubuntu-latest ]
23+
php: [ '5.3', '5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4', '8.0' ]
24+
dependencies: [ 'lowest', 'highest' ]
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
coverage: none
31+
32+
- if: matrix.dependencies == 'lowest'
33+
run: composer update --no-ansi --no-interaction --no-progress --prefer-lowest
34+
35+
- if: matrix.dependencies == 'highest'
36+
run: composer update --no-ansi --no-interaction --no-progress
37+
38+
- name: Run tests with phpunit
39+
run: php ./phpunit

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Stable Version](https://img.shields.io/packagist/v/php5friends/phpunit48.svg?style=flat-square)](https://packagist.org/packages/php5friends/phpunit48)
44
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3.3-8892BF.svg?style=flat-square)](https://php.net/supported-versions.php)
5-
[![Build Status](https://img.shields.io/travis/php5friends/phpunit48/4.8.svg?style=flat-square)](https://travis-ci.org/php5friends/phpunit48)
5+
[![CI](https://github.com/php5friends/phpunit48/actions/workflows/ci.yml/badge.svg)](https://github.com/php5friends/phpunit48/actions/workflows/ci.yml)
66

77
**PHPUnit48** is a variant of [PHPUnit](https://phpunit.de/). The purpose of this project is to make PHPUnit 4.8 compatible with the new PHP and to make it compatible with PHPUnit 6.
88

0 commit comments

Comments
 (0)