Skip to content

Commit

Permalink
Setup Github Actions in place of travis
Browse files Browse the repository at this point in the history
- CI setup for 7.3 - 8.0
- Fixed tests to support php 7.3

Signed-off-by: RJ Garcia <ragboyjr@icloud.com>
  • Loading branch information
ragboyjr committed Dec 24, 2020
1 parent 8c4757c commit 435cf35
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 33 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/php.yml
@@ -0,0 +1,35 @@
name: PHP

on: [push]

jobs:
run:
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
phpunit-versions: ['9.5']
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}

- name: Validate Composer
run: composer validate
- name: Install Composer Deps
run: composer install
- name: Run Tests
run: phpunit --testdox --coverage-text --coverage-clover=coverage.clover
- name: Upload Scrutinzer
continue-on-error: true
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -23,7 +23,7 @@
}
],
"require" : {
"php": "^5.3|^7.0|^8.0"
"php": "^7.0|^8.0"
},
"require-dev": {
"mikey179/vfsstream": "^1.6",
Expand Down
2 changes: 1 addition & 1 deletion tests/Extension/URITest.php
Expand Up @@ -10,7 +10,7 @@

class URITest extends TestCase
{
private URI $extension;
private $extension;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/DataTest.php
Expand Up @@ -9,7 +9,7 @@

class DataTest extends TestCase
{
private Data $template_data;
private $template_data;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/DirectoryTest.php
Expand Up @@ -10,7 +10,7 @@

class DirectoryTest extends TestCase
{
private Directory $directory;
private $directory;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FileExtensionTest.php
Expand Up @@ -9,7 +9,7 @@

class FileExtensionTest extends TestCase
{
private FileExtension $fileExtension;
private $fileExtension;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FolderTest.php
Expand Up @@ -9,7 +9,7 @@

class FolderTest extends \PHPUnit\Framework\TestCase
{
private Folder $folder;
private $folder;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FoldersTest.php
Expand Up @@ -9,7 +9,7 @@

class FoldersTest extends \PHPUnit\Framework\TestCase
{
private Folders $folders;
private $folders;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FuncTest.php
Expand Up @@ -11,7 +11,7 @@

class FuncTest extends TestCase
{
private Func $function;
private $function;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FunctionsTest.php
Expand Up @@ -9,7 +9,7 @@

class FunctionsTest extends TestCase
{
private Functions $functions;
private $functions;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/NameTest.php
Expand Up @@ -11,7 +11,7 @@

class NameTest extends TestCase
{
private Engine $engine;
private $engine;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/TemplateTest.php
Expand Up @@ -11,7 +11,7 @@

class TemplateTest extends TestCase
{
private Template $template;
private $template;

protected function setUp(): void
{
Expand Down

0 comments on commit 435cf35

Please sign in to comment.