Skip to content

Commit

Permalink
use github actions and codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrox committed May 8, 2020
1 parent b9cf9de commit 98a70f9
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 41 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

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

- name: Run test suite
run: composer run-script test

- name: send coverage to codecov
run: bash <(curl -s https://codecov.io/bash)
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
### General ###
/build/
.idea

### Composer ###
composer.phar
/vendor/.idea
vendor
composer.lock
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# HaikunatorPHP

[![Build Status](https://img.shields.io/travis/Atrox/haikunatorphp.svg?style=flat-square)](https://travis-ci.org/Atrox/haikunatorphp)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fatrox%2Fhaikunatorphp%2Fbadge&style=flat-square)](https://actions-badge.atrox.dev/atrox/haikunatorphp/goto)
[![Latest Version](https://img.shields.io/packagist/v/Atrox/haikunator.svg?style=flat-square)](https://packagist.org/packages/atrox/haikunator)
[![Coverage Status](https://img.shields.io/coveralls/Atrox/haikunatorphp.svg?style=flat-square)](https://coveralls.io/r/Atrox/haikunatorphp)
[![Coverage Status](https://img.shields.io/codecov/c/github/atrox/haikunatorphp.svg?style=flat-square)](https://codecov.io/gh/atrox/haikunatorphp)

Generate Heroku-like random names to use in your PHP applications.

Expand Down Expand Up @@ -85,6 +85,7 @@ Haikunator is also available in other languages. Check them out:
- Python: https://github.com/Atrox/haikunatorpy
- Java: https://github.com/Atrox/haikunatorjava
- Go: https://github.com/Atrox/haikunatorgo
- Clojure: https://github.com/Atrox/haikunatorclj
- Dart: https://github.com/Atrox/haikunatordart
- Ruby: https://github.com/usmanbashir/haikunator
- Rust: https://github.com/nishanths/rust-haikunator
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
"authors": [
{
"name": "Atrox",
"email": "mail@atrox.me"
"email": "hello@atrox.dev"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": ">=5.0",
"satooshi/php-coveralls": "dev-master"
"phpunit/phpunit": ">=5.0"
},
"autoload": {
"psr-4": {
Expand All @@ -27,7 +26,6 @@
}
},
"scripts": {
"test": "phpunit",
"coverage": "coveralls -v"
"test": "phpunit"
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-clover" target="build/logs/coverage.xml"/>
<log type="coverage-html" target="build/logs/html"/>
</logging>
<filter>
Expand Down

0 comments on commit 98a70f9

Please sign in to comment.