Skip to content

Commit c0f5fb8

Browse files
Merge pull request #12 from DavidePastore/move-to-github-actions
Move to GitHub Actions
2 parents f02299d + e129f6b commit c0f5fb8

File tree

4 files changed

+36
-1956
lines changed

4 files changed

+36
-1956
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
@@ -2,7 +2,7 @@
22

33

44
[![Latest version][ico-version]][link-packagist]
5-
[![Build Status][ico-travis]][link-travis]
5+
[![Build Status][ico-github-actions]][link-github-actions]
66
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
77
[![Quality Score][ico-code-quality]][link-code-quality]
88
[![Total Downloads][ico-downloads]][link-downloads]
@@ -62,15 +62,15 @@ This library is released under the [MIT license](http://opensource.org/licenses/
6262

6363

6464
[ico-version]: https://img.shields.io/packagist/v/DavidePastore/LoremPixel-Twig-Extension.svg?style=flat-square
65-
[ico-travis]: https://travis-ci.org/DavidePastore/LoremPixel-Twig-Extension.svg?branch=master
65+
[ico-github-actions]: https://github.com/DavidePastore/LoremPixel-Twig-Extension/workflows/Continuous%20Integration/badge.svg?branch=master
6666
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/DavidePastore/LoremPixel-Twig-Extension.svg?style=flat-square
6767
[ico-code-quality]: https://img.shields.io/scrutinizer/g/davidepastore/LoremPixel-Twig-Extension.svg?style=flat-square
6868
[ico-downloads]: https://img.shields.io/packagist/dt/davidepastore/LoremPixel-Twig-Extension.svg?style=flat-square
6969
[ico-styleci]: https://styleci.io/repos/65571631/shield
7070

7171
[link-lorempixel]: http://lorempixel.com/
7272
[link-packagist]: https://packagist.org/packages/davidepastore/LoremPixel-Twig-Extension
73-
[link-travis]: https://travis-ci.org/DavidePastore/LoremPixel-Twig-Extension
73+
[link-github-actions]: https://github.com/DavidePastore/LoremPixel-Twig-Extension/actions?query=workflow%3A%22Continuous+Integration%22
7474
[link-scrutinizer]: https://scrutinizer-ci.com/g/DavidePastore/LoremPixel-Twig-Extension/code-structure
7575
[link-code-quality]: https://scrutinizer-ci.com/g/DavidePastore/LoremPixel-Twig-Extension
7676
[link-downloads]: https://packagist.org/packages/davidepastore/LoremPixel-Twig-Extension

0 commit comments

Comments
 (0)