Skip to content

Commit

Permalink
fix: ignore build files when creating composer releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Mar 4, 2024
1 parent 3d6a2cb commit e473059
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 8 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/.build export-ignore
/.github export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php-cs-fixer.dist.php export-ignore
.pre-commit-config.yaml export-ignore
.yamllint.yaml export-ignore
Makefile export-ignore
package.json export-ignore
phpstan.neon.dist export-ignore
phpstan-baseline.neon export-ignore
phpunit.xml.dist export-ignore
renovate.json export-ignore
2 changes: 2 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ rules:
require-starting-space: true
min-spaces-from-content: 1

line-length: disable

yaml-files:
- "*.yaml"
- "*.yml"
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ hooks: ## Install git hooks from pre-commit-config
pre-commit autoupdate
.PHONY: hooks

lint: lint-yaml lint-php lint-stan ## Runs all linting commands
.PHONY: lint

lint-yaml: ## Lints yaml files inside project
yamllint .
.PHONY: lint-yaml
Expand Down
16 changes: 9 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheResultFile=".build/phpunit/result.cache"
failOnWarning="true"
failOnRisky="true"
beStrictAboutOutputDuringTests="true">
stopOnFailure="true"
stopOnError="true"
beStrictAboutOutputDuringTests="true"
cacheDirectory="./.build/phpunit.cache">
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<testsuites>
<testsuite name="Tests">
<directory>tests</directory>
Expand All @@ -27,9 +34,4 @@
<directory suffix=".php">src</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>
14 changes: 13 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
"config:base"
],
"automerge": true,
"platformAutomerge": true
"platformAutomerge": true,
"lockFileMaintenance": {
"enabled": true,
"automerge": true,
"automergeType": "pr",
"platformAutomerge": true
},
"packageRules": [
{
"updateTypes": ["minor", "patch"],
"automerge": true
}
]
}

0 comments on commit e473059

Please sign in to comment.