-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Allow usage of php-cs-fixer/shim
BREAKING CHANGE: Change of structure. TenantCloudSet is no longer a php-cs-fixer rule set.
- Loading branch information
1 parent
f8c58fc
commit b7d3528
Showing
19 changed files
with
135 additions
and
2,336 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,34 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Tests"] | ||
types: | ||
- completed | ||
branches: | ||
- master | ||
- next | ||
- next-major | ||
- beta | ||
- alpha | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create a release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/changelog | ||
@semantic-release/git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
//require __DIR__ . '/vendor/tenantcloud/php-cs-fixer-rule-sets/PhpdocSingleLineVarFixer.php'; | ||
require __DIR__ . '/src/TenantCloud/PhpCsFixer/RuleSet/TenantCloudSet.php'; | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
use TenantCloud\PhpCsFixer\RuleSet\TenantCloudSet; | ||
|
||
$finder = Finder::create() | ||
->in('src') | ||
->in('tests') | ||
->name('*.php') | ||
->notName('_*.php') | ||
->ignoreVCS(true); | ||
|
||
return (new PhpCsFixer\Config()) | ||
return (new Config()) | ||
->setFinder($finder) | ||
->setRiskyAllowed(true) | ||
->setIndent("\t") | ||
->setRules([ | ||
'@TenantCloud' => true, | ||
...(new TenantCloudSet())->rules(), | ||
]); |
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,6 @@ | ||
plugins: | ||
- '@semantic-release/commit-analyzer' | ||
- '@semantic-release/release-notes-generator' | ||
- '@semantic-release/changelog' | ||
- '@semantic-release/git' | ||
- '@semantic-release/github' |
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,13 @@ | ||
# Commands | ||
|
||
Install dependencies: | ||
`docker run -it --rm -v $PWD:/app -w /app composer install` | ||
|
||
Run tests: | ||
`docker run -it --rm -v $PWD:/app -w /app php:8.1-cli vendor/bin/pest` | ||
|
||
Run php-cs-fixer on self: | ||
`docker run -it --rm -v $PWD:/app -w /app composer cs-fix` | ||
|
||
Run phpstan on self: | ||
`docker run -it --rm -v $PWD:/app -w /app composer phpstan` |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.