Skip to content

Commit

Permalink
Merge pull request #4 from EmanueleMinotto/github-actions
Browse files Browse the repository at this point in the history
Switch to GitHub Actions
  • Loading branch information
EmanueleMinotto committed Jan 2, 2021
2 parents 24765c7 + 6971613 commit 4f2ebe3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: CI
name: Continuous Integration

on:
pull_request: null
push:
branches:
- master
- pull_request
- push

jobs:
tests:
Expand All @@ -17,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@v1
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: phpunit

- run: 'composer require phpunit/phpunit:*'
- run: composer require psr/log psr/container
- run: phpunit -v --colors=always tests
- run: vendor/bin/phpunit -v tests
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Crystal PHP Microframework [![Build Status](https://travis-ci.org/EmanueleMinotto/crystal.svg?branch=master)](https://travis-ci.org/EmanueleMinotto/crystal)
# Crystal PHP Microframework ![Continuous Integration](https://github.com/EmanueleMinotto/crystal/workflows/Continuous%20Integration/badge.svg)

* Documentation: https://github.com/EmanueleMinotto/crystal/wiki
* Contributing: https://github.com/EmanueleMinotto/crystal/wiki/Contributing
4 changes: 2 additions & 2 deletions crystal.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
$argv[0] = $cb;
// register_shutdown_function is used to call added functions when script ends
// http://it2.php.net/manual/en/function.register-shutdown-function.php
return call_user_func_array('register_shutdown_function', $argv);
return call_user_func_array('register_shutdown_function', array_values($argv));
};

goto invoke_deploy;
Expand Down Expand Up @@ -293,7 +293,7 @@

// register_shutdown_function is used to call added functions when script ends
// http://it2.php.net/manual/en/function.register-shutdown-function.php
return call_user_func_array('register_shutdown_function', $submatches);
return call_user_func_array('register_shutdown_function', array_values($submatches));
}
};

Expand Down

0 comments on commit 4f2ebe3

Please sign in to comment.