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 ee3e68e commit c740deb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
@@ -1,9 +1,9 @@
* text=auto eol=lf

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

on: [push, pull_request]

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php: [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

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

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -15,11 +15,9 @@ Hashids::decode('1LLb3b4ck');
$hashidsManager->encode(911);
```

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

## Installation

Expand Down

0 comments on commit c740deb

Please sign in to comment.