Skip to content

Commit

Permalink
Travis → GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Feb 23, 2020
1 parent 0c5bf89 commit d7986a3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
5 changes: 2 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
* text=auto eol=lf

/tests export-ignore
/.codecov.yml export-ignore
/.github export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/CHANGELOG.md export-ignore
/README.md export-ignore
/phpunit.xml.dist export-ignore
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push, pull_request]

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.2, 7.3, 7.4]

name: PHP ${{ matrix.php }}

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- run: vendor/bin/phpunit --coverage-text
- run: vendor/bin/phpcs --standard=PSR12 --colors -n src tests

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[![hashids](https://hashids.org/public/img/hashids.gif "Hashids")](https://hashids.org/)

[![Build Status](https://badgen.net/travis/vinkla/hashids/master)](https://travis-ci.com/vinkla/hashids)
[![Coverage Status](https://badgen.net/codecov/c/github/vinkla/hashids)](https://codecov.io/github/vinkla/hashids)
[![Monthly Downloads](https://badgen.net/packagist/dm/hashids/hashids)](https://packagist.org/packages/hashids/hashids)
[![Latest Version](https://badgen.net/packagist/v/hashids/hashids)](https://github.com/vinkla/hashids/releases)
[![License](https://badgen.net/packagist/license/hashids/hashids)](https://packagist.org/packages/hashids/hashids)
[![Build Status](https://badgen.net/github/status/vinkla/hashids/master)](https://github.com/vinkla/hashids/actions)
[![Monthly Downloads](https://badgen.net/packagist/dm/vinkla/hashids)](https://packagist.org/packages/vinkla/hashids/stats)
[![Latest Version](https://badgen.net/github/release/vinkla/hashids)](https://github.com/vinkla/laravel-shield/releases)

**Hashids** is a small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database numeric ids to users: [https://hashids.org/php](https://hashids.org/php)

Expand Down

0 comments on commit d7986a3

Please sign in to comment.