Skip to content

Commit 71a25fa

Browse files
committed
♻️🍏 Replace TravisCI with GitHub Actions
1 parent 90f36d0 commit 71a25fa

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

.github/workflows/CI.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: Tests on PHP ${{ matrix.php }} ${{ matrix.dependencies }}
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
14+
dependencies: ['', '--prefer-lowest --prefer-stable']
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2.3.4
18+
- uses: shivammathur/setup-php@2.9.0
19+
with:
20+
php-version: ${{ matrix.php }}
21+
- name: Install dependencies
22+
run: composer update --no-interaction --prefer-dist ${{ matrix.dependencies }}
23+
- name: Configure PHPUnit problem matchers
24+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
25+
- name: Run tests
26+
run: ./vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bramus/router
22

3-
[![Build Status](https://img.shields.io/travis/bramus/router.svg?style=flat-square)](http://travis-ci.org/bramus/router) [![Source](http://img.shields.io/badge/source-bramus/router-blue.svg?style=flat-square)](https://github.com/bramus/router) [![Version](https://img.shields.io/packagist/v/bramus/router.svg?style=flat-square)](https://packagist.org/packages/bramus/router) [![Downloads](https://img.shields.io/packagist/dt/bramus/router.svg?style=flat-square)](https://packagist.org/packages/bramus/router/stats) [![License](https://img.shields.io/packagist/l/bramus/router.svg?style=flat-square)](https://github.com/bramus/router/blob/master/LICENSE)
3+
[![Build Status](https://github.com/bramus/enumeration/workflows/CI/badge.svg)](https://github.com/bramus/router/actions) [![Source](http://img.shields.io/badge/source-bramus/router-blue.svg?style=flat-square)](https://github.com/bramus/router) [![Version](https://img.shields.io/packagist/v/bramus/router.svg?style=flat-square)](https://packagist.org/packages/bramus/router) [![Downloads](https://img.shields.io/packagist/dt/bramus/router.svg?style=flat-square)](https://packagist.org/packages/bramus/router/stats) [![License](https://img.shields.io/packagist/l/bramus/router.svg?style=flat-square)](https://github.com/bramus/router/blob/master/LICENSE)
44

55
A lightweight and simple object oriented PHP Router.
66
Built by Bram(us) Van Damme _([https://www.bram.us](https://www.bram.us))_ and [Contributors](https://github.com/bramus/router/graphs/contributors)

0 commit comments

Comments
 (0)