Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis
Browse files Browse the repository at this point in the history
Closed #56
  • Loading branch information
DavidePastore committed Dec 20, 2022
1 parent 3b63dae commit 50900c6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 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.0', '7.1', '7.2', '7.3', '7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- 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 --coverage-text --coverage-clover=coverage.clover

- name: Upload code coverage data
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

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

[![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 @@ -194,14 +194,14 @@ If you have issues, just open one [here](https://github.com/DavidePastore/ipinfo


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

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

0 comments on commit 50900c6

Please sign in to comment.