Skip to content

Commit

Permalink
New Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Smet committed Mar 11, 2024
1 parent d1cefcd commit 086c0d5
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# JBZoo / Csv-Blueprint

[![CI](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/main.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/JBZoo/Csv-Blueprint/badge.svg?branch=master)](https://coveralls.io/github/JBZoo/Csv-Blueprint?branch=master) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Csv-Blueprint/coverage.svg)](https://shepherd.dev/github/JBZoo/Csv-Blueprint) [![Psalm Level](https://shepherd.dev/github/JBZoo/Csv-Blueprint/level.svg)](https://shepherd.dev/github/JBZoo/Csv-Blueprint) [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/csv-blueprint/badge)](https://www.codefactor.io/repository/github/jbzoo/csv-blueprint/issues)
[![CI](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/main.yml?query=branch%3Amaster) [![CI](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/demo.yml/badge.svg?branch=master)](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/demo.yml?query=branch%3Amaster) [![CI](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/release-docker.yml/badge.svg?branch=master)](https://github.com/JBZoo/Csv-Blueprint/actions/workflows/release-docker.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/JBZoo/Csv-Blueprint/badge.svg?branch=master)](https://coveralls.io/github/JBZoo/Csv-Blueprint?branch=master) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Csv-Blueprint/coverage.svg)](https://shepherd.dev/github/JBZoo/Csv-Blueprint) [![Psalm Level](https://shepherd.dev/github/JBZoo/Csv-Blueprint/level.svg)](https://shepherd.dev/github/JBZoo/Csv-Blueprint) [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/csv-blueprint/badge)](https://www.codefactor.io/repository/github/jbzoo/csv-blueprint/issues)
[![Stable Version](https://poser.pugx.org/jbzoo/csv-blueprint/version)](https://packagist.org/packages/jbzoo/csv-blueprint/) [![Total Downloads](https://poser.pugx.org/jbzoo/csv-blueprint/downloads)](https://packagist.org/packages/jbzoo/csv-blueprint/stats) [![Docker Pulls](https://img.shields.io/docker/pulls/jbzoo/csv-blueprint.svg)](https://hub.docker.com/r/jbzoo/csv-blueprint) [![Dependents](https://poser.pugx.org/jbzoo/csv-blueprint/dependents)](https://packagist.org/packages/jbzoo/csv-blueprint/dependents?order_by=downloads) [![GitHub License](https://img.shields.io/github/license/jbzoo/csv-blueprint)](https://github.com/JBZoo/Csv-Blueprint/blob/master/LICENSE)



* [Introduction](#introduction)
* [Why Validate CSV Files in CI?](#why-validate-csv-files-in-ci)
* [Features](#features)
Expand Down
86 changes: 85 additions & 1 deletion tests/CsvBlueprintPackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,94 @@ final class CsvBlueprintPackageTest extends \JBZoo\Codestyle\PHPUnit\AbstractPac
{
protected string $packageName = 'Csv-Blueprint';

protected array $params = [
// Packagist
'packagist_latest_stable_version' => true,
'packagist_latest_unstable_version' => true,
'packagist_license' => true,
'packagist_version' => true,

'packagist_dependents' => true,
'packagist_suggesters' => true,

'packagist_downloads_total' => true,
'packagist_downloads_daily' => true,
'packagist_downloads_monthly' => true,

'packagist_composerlock' => true,
'packagist_gitattributes' => true,

'github_issues' => true,
'github_license' => true,
'github_forks' => true,
'github_stars' => true,
'github_actions' => true,

'github_actions_demo' => true,
'github_actions_release_docker' => true,

'docker_pulls' => true,

'psalm_coverage' => true,
'psalm_level' => true,
'codacy' => true,
'codefactor' => true,
'sonarcloud' => true,
'coveralls' => true,
'circle_ci' => true,
];

protected array $badgesTemplate = [
'github_actions',
'github_actions_demo',
'github_actions_release_docker',
'docker_build',
'codecov',
'coveralls',
'psalm_coverage',
'psalm_level',
'codefactor',
'scrutinizer',
'__BR__',
'packagist_latest_stable_version',
'packagist_downloads_total',
'docker_pulls',
'packagist_dependents',
'visitors',
'github_license',
];

protected function setUp(): void
{
$this->params['docker_pulls'] = true;
$this->excludePaths[] = 'assets';

parent::setUp();
}

protected function checkBadgeGithubActionsDemo(): ?string
{
$path = 'https://github.com/__VENDOR_ORIG__/__PACKAGE_ORIG__/actions/workflows';

return $this->getPreparedBadge(
$this->getBadge(
'CI',
$path . '/demo.yml/badge.svg?branch=master',
$path . '/demo.yml?query=branch%3Amaster',
),
);
}

protected function checkBadgeGithubActionsReleaseDocker(): ?string
{
$path = 'https://github.com/__VENDOR_ORIG__/__PACKAGE_ORIG__/actions/workflows';

return $this->getPreparedBadge(
$this->getBadge(
'CI',
$path . '/release-docker.yml/badge.svg?branch=master',
$path . '/release-docker.yml?query=branch%3Amaster',
),
);
}

}

0 comments on commit 086c0d5

Please sign in to comment.