Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
renekorss committed Oct 3, 2019
2 parents 741542a + b5902e9 commit 9aa89dd
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 84 deletions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Expected Behavior


## Actual Behavior


## Steps to Reproduce the Problem

1.
2.
3.

## Specifications

- Version:
- Platform:
- Subsystem:
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Fixes #

## Proposed Changes

-
-
-
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4']

name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extension-csv: dom
coverage: xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --ignore-platform-reqs
- name: PHP Code Sniffer
if: matrix.php-versions == '7.2'
run: vendor/bin/phpcs --report=full --extensions=php -p --standard=PSR2 ./src ./tests
- name: PHP Mess Detector
if: matrix.php-versions == '7.2'
run: vendor/bin/phpmd ./src text phpmd.xml
- name: PHP Unit Tests with coverage
if: matrix.php-versions == '7.2'
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: PHP Unit Tests
if: matrix.php-versions != '7.2'
run: vendor/bin/phpunit
- name: Send to coveralls
if: matrix.php-versions == '7.2'
run: php vendor/bin/php-coveralls -v
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

82 changes: 41 additions & 41 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "renekorss/blockhain",
"description": "Simple blockchain implementation in PHP",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^7.3",
"squizlabs/php_codesniffer": "^3.3",
"phpdocumentor/phpdocumentor": "dev-master",
"phpmd/phpmd": "^2.6",
"php-coveralls/php-coveralls": "^2.1"
},
"license": "MIT",
"authors": [
{
"name": "Rene Korss",
"email": "rene.korss@gmail.com"
}
],
"require": {
"php": "^7.2"
},
"autoload": {
"psr-4": {
"RKD\\Blockchain\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"RKD\\Blockchain\\": "tests/"
}
},
"scripts": {
"build": [
"@tests",
"@phpmd",
"@phpcs",
"@docs"
],
"tests": "vendor/bin/phpunit",
"docs": "phpdoc -d ./src -t ./docs --template=responsive-twig",
"phpmd": "phpmd ./src text phpmd.xml",
"phpcs": "phpcs --report=full --extensions=php -p --standard=PSR2 ./src ./tests"
"name": "renekorss/blockhain",
"description": "Simple blockchain implementation in PHP",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^7.3",
"squizlabs/php_codesniffer": "^3.3",
"phpdocumentor/phpdocumentor": "dev-master",
"phpmd/phpmd": "^2.6",
"php-coveralls/php-coveralls": "^2.1"
},
"license": "MIT",
"authors": [
{
"name": "Rene Korss",
"email": "rene.korss@gmail.com"
}
],
"require": {
"php": "^7.2"
},
"autoload": {
"psr-4": {
"RKD\\Blockchain\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"RKD\\Blockchain\\": "tests/"
}
},
"scripts": {
"build": [
"@test",
"@phpmd",
"@phpcs",
"@docs"
],
"test": "vendor/bin/phpunit",
"docs": "phpdoc -d ./src -t ./docs --template=responsive-twig",
"phpmd": "phpmd ./src text phpmd.xml",
"phpcs": "phpcs --report=full --extensions=php -p --standard=PSR2 ./src ./tests"
}
}

0 comments on commit 9aa89dd

Please sign in to comment.