Skip to content

Commit

Permalink
MNT Use GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 14, 2022
1 parent 7a4fe15 commit edbc016
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 13 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# Every Monday at 2:00pm UTC
schedule:
- cron: '0 14 * * 1'

jobs:
ci:
name: CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
17 changes: 17 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Keepalive

on:
workflow_dispatch:
# The 4th of every month at 10:50am UTC
schedule:
- cron: '50 10 4 * *'

jobs:
keepalive:
name: Keepalive
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"jeremeamia/superclosure": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36|^5.7.27"
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Handler/CallbackHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CallbackHandlerTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Manager/GroupProcessManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GroupProcessManagerTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Manager/ProcessManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ProcessManagerTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Manager/SynchronousManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SynchronousManagerTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Profile/InMemoryProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class InMemoryProfileTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Rule/InMemoryRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class InMemoryRuleTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Rules/InMemoryRulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class InMemoryRulesTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Shell/BashShellTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BashShellTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Task/CallbackTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CallbackTaskTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Task/ProcessCallbackTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ProcessCallbackTaskTest extends Test
/**
* @inheritdoc
*/
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
4 changes: 2 additions & 2 deletions tests/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace AsyncPHP\Doorman\Tests;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

abstract class Test extends PHPUnit_Framework_TestCase
abstract class Test extends TestCase
{
/**
* Safely deletes a file.
Expand Down

0 comments on commit edbc016

Please sign in to comment.