Skip to content

Commit

Permalink
Move to GitHub Actions (#53)
Browse files Browse the repository at this point in the history
* Use GitHub actions instead of Travis

* Remove .travis.yml

* Update README.md and README-it.md references to Travis, using GitHub Actions ones instead
  • Loading branch information
DavidePastore authored Jan 30, 2021
1 parent e47d708 commit a7d01b9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Check PHP Version
run: php -v

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: PHP Unit tests
run: |
vendor/bin/phpunit --testsuite travis-ci
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- name: Upload code coverage data
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README-it.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ codice-fiscale
======

[![Latest version][ico-version]][link-packagist]
[![Build Status][ico-travis]][link-travis]
[![Build Status][ico-github-actions]][link-github-actions]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
Expand Down Expand Up @@ -346,14 +346,14 @@ Se hai delle segnalazioni, aprine una [qui](https://github.com/DavidePastore/cod


[ico-version]: https://img.shields.io/packagist/v/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-travis]: https://travis-ci.org/DavidePastore/codice-fiscale.svg?branch=master
[ico-github-actions]: https://github.com/DavidePastore/codice-fiscale/workflows/Continuous%20Integration/badge.svg?branch=master
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/davidepastore/codice-fiscale.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/46665960/shield

[link-packagist]: https://packagist.org/packages/DavidePastore/codice-fiscale
[link-travis]: https://travis-ci.org/DavidePastore/codice-fiscale
[link-github-actions]: https://github.com/DavidePastore/codice-fiscale/actions?query=workflow%3A%22Continuous+Integration%22
[link-scrutinizer]: https://scrutinizer-ci.com/g/DavidePastore/codice-fiscale/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/DavidePastore/codice-fiscale
[link-downloads]: https://packagist.org/packages/DavidePastore/codice-fiscale
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ codice-fiscale
======

[![Latest version][ico-version]][link-packagist]
[![Build Status][ico-travis]][link-travis]
[![Build Status][ico-github-actions]][link-github-actions]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
Expand Down Expand Up @@ -346,14 +346,14 @@ If you have issues, just open one [here](https://github.com/DavidePastore/codice


[ico-version]: https://img.shields.io/packagist/v/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-travis]: https://travis-ci.org/DavidePastore/codice-fiscale.svg?branch=master
[ico-github-actions]: https://github.com/DavidePastore/codice-fiscale/workflows/Continuous%20Integration/badge.svg?branch=master
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/davidepastore/codice-fiscale.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/DavidePastore/codice-fiscale.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/46665960/shield

[link-packagist]: https://packagist.org/packages/DavidePastore/codice-fiscale
[link-travis]: https://travis-ci.org/DavidePastore/codice-fiscale
[link-github-actions]: https://github.com/DavidePastore/codice-fiscale/actions?query=workflow%3A%22Continuous+Integration%22
[link-scrutinizer]: https://scrutinizer-ci.com/g/DavidePastore/codice-fiscale/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/DavidePastore/codice-fiscale
[link-downloads]: https://packagist.org/packages/DavidePastore/codice-fiscale
Expand Down

0 comments on commit a7d01b9

Please sign in to comment.