-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#43] Update repo structure to https://github.com/AlexSkrypnyk/scaffold…
… (#44)
- Loading branch information
1 parent
31cac6b
commit b5c0549
Showing
28 changed files
with
659 additions
and
271 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,3 @@ | ||
# These are supported funding model platforms | ||
|
||
patreon: alexskrypnyk |
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,19 @@ | ||
## Checklist before requesting a review | ||
|
||
- [ ] I have formatted the subject to include ticket number | ||
as `[#123] Verb in past tense with dot at the end.` | ||
- [ ] I have added a link to the issue tracker | ||
- [ ] I have provided information in `Changed` section about WHY something was | ||
done if this was not a normal implementation | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] I have run new and existing relevant tests locally with my changes, and | ||
they passed | ||
- [ ] I have provided screenshots, where applicable | ||
|
||
## Changed | ||
|
||
1. | ||
|
||
## Screenshots |
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,12 @@ | ||
name-template: '$NEXT_MINOR_VERSION' | ||
tag-template: '$NEXT_MINOR_VERSION' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
template: | | ||
## What's new since $PREVIOUS_TAG | ||
$CHANGES | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION | ||
$CONTRIBUTORS |
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,16 @@ | ||
name: 'Auto Author Assign' | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/[email protected] |
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,22 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release-drafter: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,26 +1,39 @@ | ||
{ | ||
"name": "drevops/git-artifact", | ||
"description": "Build artifact from your codebase in CI and push it to a separate git repo.", | ||
"type": "robo-tasks", | ||
"description": "Build artifact from your codebase in CI and push it to a separate git repo.", | ||
"license": "GPL-2.0-or-later", | ||
"authors": [ | ||
{ | ||
"name": "Alex Skrypnyk", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"homepage": "https://github.com/drevops/git-artifact", | ||
"support": { | ||
"issues": "https://github.com/drevops/git-artifact/issues", | ||
"source": "https://github.com/drevops/git-artifact" | ||
}, | ||
"require": { | ||
"consolidation/robo": "^4" | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.6", | ||
"phpunit/phpunit": "^9.5", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7", | ||
"escapestudios/symfony2-coding-standard": "^3" | ||
"escapestudios/symfony2-coding-standard": "^3", | ||
"phpmd/phpmd": "^2.15", | ||
"phpstan/phpstan": "^1.10", | ||
"phpunit/phpunit": "^10.5", | ||
"squizlabs/php_codesniffer": "^3.6" | ||
}, | ||
"scripts": { | ||
"lint": "./vendor/bin/phpcs -s", | ||
"test": "./vendor/bin/phpunit --colors=always --fail-on-warning", | ||
"lint": [ | ||
"phpcs", | ||
"phpmd --exclude vendor . text phpmd.xml", | ||
"phpstan" | ||
], | ||
"lint:fix": "phpcbf", | ||
"test": "phpunit --no-coverage", | ||
"test:coverage": "XDEBUG_MODE=coverage phpunit", | ||
"clean": "vagrant -f destroy &>/dev/null || $(which true); rm -Rf $(pwd)/.vagrant; rm -Rf $(pwd)/.beetbox; rm -Rf $(pwd)/Vagrantfile; rm -Rf $(pwd)/vendor; rm -Rf $(pwd)/screenshots;", | ||
"install-codestandards": [ | ||
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Custom PHPMD ruleset." | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
|
||
<rule ref="rulesets/unusedcode.xml"/> | ||
<rule ref="rulesets/codesize.xml"/> | ||
<rule ref="rulesets/cleancode.xml/MissingImport"> | ||
<properties> | ||
<property name="ignore-global" value="true"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |
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,18 @@ | ||
## | ||
# Configuration file for PHPStan static code checking, see https://phpstan.org . | ||
# | ||
|
||
parameters: | ||
|
||
level: 9 | ||
|
||
paths: | ||
- src | ||
- tests | ||
- RoboFile.php | ||
|
||
excludePaths: | ||
- vendor/* | ||
- node_modules/* | ||
|
||
ignoreErrors: |
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,8 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit colors="true" bootstrap="./vendor/autoload.php"> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
cacheDirectory=".phpunit.cache" | ||
executionOrder="depends,defects" | ||
requireCoverageMetadata="true" | ||
beStrictAboutCoverageMetadata="false" | ||
beStrictAboutOutputDuringTests="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
displayDetailsOnTestsThatTriggerWarnings="true" | ||
displayDetailsOnTestsThatTriggerErrors="true" | ||
displayDetailsOnTestsThatTriggerNotices="true" | ||
> | ||
<testsuites> | ||
<testsuite name="GitArtefact"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true"> | ||
<include> | ||
<file>src</file> | ||
</include> | ||
</source> | ||
|
||
<coverage includeUncoveredFiles="true" | ||
pathCoverage="false" | ||
ignoreDeprecatedCodeUnits="true" | ||
disableCodeCoverageIgnore="false"> | ||
<report> | ||
<html outputDirectory=".coverage-html" lowUpperBound="50" highLowerBound="90"/> | ||
<cobertura outputFile="cobertura.xml"/> | ||
</report> | ||
</coverage> | ||
</phpunit> |
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,8 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"automerge": true, | ||
"dependencyDashboard": true, | ||
"extends": [ | ||
"config:base" | ||
] | ||
} |
Oops, something went wrong.