Skip to content

Commit 2cf19a6

Browse files
Merge pull request #14 from DavidePastore/move-to-gh-actions
Move to GitHub Actions
2 parents f75e06c + a6d3521 commit 2cf19a6

File tree

4 files changed

+36
-2032
lines changed

4 files changed

+36
-2032
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continuous Integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
quality:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system: [ubuntu-latest]
11+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
12+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Install PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
23+
- name: Check PHP Version
24+
run: php -v
25+
26+
- name: Install dependencies
27+
run: composer install --prefer-dist --no-progress --no-suggest
28+
29+
- name: PHP Unit tests
30+
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
31+
32+
- name: Upload code coverage data
33+
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Slim Framework Config
22

33
[![Latest version][ico-version]][link-packagist]
4-
[![Build Status][ico-travis]][link-travis]
4+
[![Build Status][ico-github-actions]][link-github-actions]
55
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
66
[![Quality Score][ico-code-quality]][link-code-quality]
77
[![Total Downloads][ico-downloads]][link-downloads]
@@ -108,14 +108,14 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
108108

109109
[hassankhan-config]: https://github.com/hassankhan/config
110110
[ico-version]: https://img.shields.io/packagist/v/DavidePastore/Slim-Config.svg?style=flat-square
111-
[ico-travis]: https://travis-ci.org/DavidePastore/Slim-Config.svg?branch=master
111+
[ico-github-actions]: https://github.com/DavidePastore/Slim-Config/workflows/Continuous%20Integration/badge.svg?branch=master
112112
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/DavidePastore/Slim-Config.svg?style=flat-square
113113
[ico-code-quality]: https://img.shields.io/scrutinizer/g/davidepastore/Slim-Config.svg?style=flat-square
114114
[ico-downloads]: https://img.shields.io/packagist/dt/davidepastore/slim-config.svg?style=flat-square
115115
[ico-styleci]: https://styleci.io/repos/53088130/shield
116116

117117
[link-packagist]: https://packagist.org/packages/davidepastore/slim-config
118-
[link-travis]: https://travis-ci.org/DavidePastore/Slim-Config
118+
[link-github-actions]: https://github.com/DavidePastore/Slim-Config/actions?query=workflow%3A%22Continuous+Integration%22
119119
[link-scrutinizer]: https://scrutinizer-ci.com/g/DavidePastore/Slim-Config/code-structure
120120
[link-code-quality]: https://scrutinizer-ci.com/g/DavidePastore/Slim-Config
121121
[link-downloads]: https://packagist.org/packages/davidepastore/slim-config

0 commit comments

Comments
 (0)