-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action for coverage github action for coverage
- Loading branch information
Showing
30 changed files
with
172 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: coverage | ||
|
||
on: ['pull_request'] | ||
|
||
jobs: | ||
coverage: | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
php: ['7.4'] | ||
|
||
name: PHP ${{ matrix.php }} - 'ubuntu-latest' - 'prefer-stable' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
extensions: | ||
gd | ||
pcov | ||
coverage: pcov | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.composer/cache" | ||
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
php${{ matrix.php-version }}-composer- | ||
- name: Setup Problem Matches | ||
run: | | ||
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
- name: Install PHP dependencies | ||
run: composer update --'prefer-stable' --no-interaction --no-progress | ||
|
||
- name: Coverage | ||
run: composer coverage | ||
if: "matrix.php == 7.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,34 @@ | ||
<?php | ||
if (!isset($_GET['target'])) { | ||
$_GET['target'] = 'axislabelbkgex01.php'; | ||
} | ||
if (!isset($_GET['folder'])) { | ||
$_GET['folder'] = 'examples_axis'; | ||
} | ||
|
||
$target = basename(urldecode($_GET['target'])); | ||
$folder = basename(urldecode($_GET['folder'])); | ||
$target = basename(urldecode($_GET['target'] ?? 'axislabelbkgex01.php')); | ||
$folder = basename(urldecode($_GET['folder'] ?? 'examples_axis')); | ||
|
||
echo "<html>"; | ||
echo '<head>'; | ||
echo '<title> Image ' . $target . '</title>'; | ||
|
||
?> | ||
<!doctype html public "-//W3C//DTD HTML 4.0 Frameset//EN"> | ||
<html> | ||
<head> | ||
<title> Test suite for JpGraph - <?php echo $target; ?></title> | ||
<script type="text/javascript" language="javascript"> | ||
<!-- | ||
function resize() | ||
{ | ||
return true; | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
|
||
<?php | ||
if (!strstr($target, 'csim')) { | ||
echo '<frameset rows="*,*" onLoad="resize()">'; | ||
echo '<frame src="show-image.php?' . 'folder=' . ($folder) . '&target=' . ($target) . '" name="image">'; | ||
echo '<frame src="show-source.php?folder=' . ($folder) . '&target=' . ($target) . '" name="source">'; | ||
$highlighted = highlight_file(($folder ? $folder . '/' : '') . $target, true); | ||
|
||
echo '</head>'; | ||
echo '<body>'; | ||
echo '<div style="float:right;"><img src="' . ($folder ? $folder . '/' : '') . ($target) . '" border=0 alt="' . $target . '" align="left"></div>'; | ||
echo $highlighted; | ||
echo '</body>'; | ||
} else { | ||
|
||
echo '<script type="text/javascript" language="javascript">'; | ||
echo '<!--'; | ||
echo 'function resize() {'; | ||
echo 'return true;'; | ||
echo '}'; | ||
echo '//'; | ||
echo '-->'; | ||
echo '</script>'; | ||
echo '</head>'; | ||
echo '<frameset rows="*" onLoad="resize()">'; | ||
echo '<frame src="' . ($folder) . '/' . ($target) . '" name="image">'; | ||
echo '</frameset>'; | ||
} | ||
?> | ||
|
||
|
||
</frameset> | ||
</html> | ||
echo '</html>'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class AxisTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class BarTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class CanvasTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class DateTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class GanttTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class ImgTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class LineTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class PieTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class ThemeTest extends \Codeception\Test\Unit | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @group ready | ||
* | ||
* @internal | ||
* @coversNothing | ||
* | ||
*/ | ||
class TickTest extends \Codeception\Test\Unit | ||
{ | ||
|
Oops, something went wrong.