Skip to content

Commit

Permalink
GH-139 Try to define dummy constants.php file for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Apr 17, 2022
1 parent a34b313 commit 27523df
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/php-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,24 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress

- name: Create dummy includes/constants.php
uses: "finnp/[email protected]"
env:
FILE_NAME: "includes/constants.php"
FILE_DATA: |
<?php
if(!defined('INSIDE'))
{
die('Access Denied');
}
define('TIME_ONLINE', 900);
define('TIME_HOUR', 3600);
define('TIME_DAY', 86400);
define('TIME_YEAR', 31536000);
define('UNIENGINE_HASAPC', function_exists('apc_fetch'));
- name: Run phpunit
run: composer run-script ci:php:test

0 comments on commit 27523df

Please sign in to comment.