generated from wayofdev/php-package-tpl
-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: upgrade local development files #263
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
41384c4
ci: upgrade local development files
lotyp d85a2b2
ci: update phpunit schema, add pestphp
lotyp db609ef
ci: add static analysis and security workflows
lotyp 8695baf
ci: add updated labeler config
lotyp 8c0e5ce
ci: add coding-standards workflow
lotyp f28c0f5
ci: add testing workflow
lotyp a548413
ci: set composer platform php version to 8.1
lotyp 57dfad0
ci: remove old ci workflow
lotyp 40e5be9
ci: add yaml linting
lotyp 14397e5
ci: add dependency-analysis workflow
lotyp 83edaa6
chore: fix gh-actions version
lotyp f54455c
chore: fix php version
lotyp b1b6ed2
ci: add composer normalize check
lotyp 41f228a
chore: add missing phive tool
lotyp 551fa0a
ci: add mutation testing using infection/infection
lotyp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,6 @@ | ||
# https://docs.docker.com/compose/reference/envvars/#compose_project_name | ||
# With custom namespace provided, it will be used to prefix all services | ||
# in Docker network for current project | ||
COMPOSE_PROJECT_NAME=php-cs-fixer-config | ||
|
||
XDEBUG_MODE=coverage |
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,24 @@ | ||
/.build export-ignore | ||
/.github export-ignore | ||
/.phive export-ignore | ||
/tests export-ignore | ||
.editorconfig export-ignore | ||
.env export-ignore | ||
.env.example 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 | ||
composer.lock export-ignore | ||
composer-require-checker.json export-ignore | ||
docker-compose.yaml export-ignore | ||
infection.json.dist export-ignore | ||
Makefile export-ignore | ||
phpstan.neon.dist export-ignore | ||
phpstan-baseline.neon export-ignore | ||
phpunit.xml.dist export-ignore | ||
psalm.xml export-ignore | ||
psalm-baseline.xml export-ignore | ||
renovate.json export-ignore | ||
rector.php export-ignore |
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,44 @@ | ||
// More info: https://github.com/wayofdev/npm-shareable-configs/blob/master/packages/commitlint-config/src/index.js | ||
const automaticCommitPattern = /^chore\(release\):.*\[skip ci]/ | ||
|
||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
This resolves a linting conflict between commitlint's body-max-line-length | ||
due to @semantic-release/git putting release notes in the commit body | ||
https://github.com/semantic-release/git/issues/331 | ||
*/ | ||
ignores: [(commitMessage) => automaticCommitPattern.test(commitMessage)], | ||
rules: { | ||
'body-leading-blank': [1, 'always'], | ||
'body-max-line-length': [2, 'always', 120], | ||
'footer-leading-blank': [1, 'always'], | ||
'footer-max-line-length': [2, 'always', 120], | ||
'header-max-length': [2, 'always', 100], | ||
'scope-case': [2, 'always', 'lower-case'], | ||
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'feat', // New feature | ||
'fix', // Bug fix | ||
'perf', // Performance improvement | ||
'docs', // Documentation changes | ||
'style', // Code style update (formatting, missing semi colons, etc) | ||
'deps', // Dependency updates | ||
'refactor', // Code refactoring | ||
'ci', // Continuous integration changes | ||
'test', // Adding missing tests | ||
'revert', // Revert to a previous commit | ||
'build', // Changes that affect the build system | ||
'chore', // Other changes that don't modify src or test files | ||
'security', // Security improvements | ||
], | ||
], | ||
}, | ||
} |
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,65 @@ | ||
// @see https://cz-git.qbb.sh/config/#configure-template | ||
module.exports = { | ||
alias: { fd: 'docs: fix typos' }, | ||
messages: { | ||
type: 'Select the type of change that you\'re committing:', | ||
scope: 'Denote the SCOPE of this change (optional):', | ||
customScope: 'Denote the SCOPE of this change:', | ||
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', | ||
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', | ||
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n', | ||
footerPrefixesSelect: 'Select the ISSUES type of changeList by this change (optional):', | ||
customFooterPrefix: 'Input ISSUES prefix:', | ||
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n', | ||
generatingByAI: 'Generating your AI commit subject...', | ||
generatedSelectByAI: 'Select suitable subject by AI generated:', | ||
confirmCommit: 'Are you sure you want to proceed with the commit above?' | ||
}, | ||
types: [ | ||
{ value: 'feat', name: 'feat: A new feature', emoji: ':sparkles:' }, | ||
{ value: 'fix', name: 'fix: A bug fix', emoji: ':bug:' }, | ||
{ value: 'perf', name: 'perf: A code change that improves performance', emoji: ':zap:' }, | ||
{ value: 'docs', name: 'docs: Documentation only changes', emoji: ':memo:' }, | ||
{ value: 'style', name: 'style: Changes that do not affect the meaning of the code', emoji: ':lipstick:' }, | ||
{ value: 'deps', name: 'deps: A dependency update', emoji: ':package:' }, | ||
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' }, | ||
{ value: 'ci', name: 'ci: Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' }, | ||
{ value: 'test', name: 'test: Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' }, | ||
{ value: 'revert', name: 'revert: Reverts a previous commit', emoji: ':rewind:' }, | ||
{ value: 'build', name: 'build: Changes that affect the build system or external dependencies', emoji: ':package:' }, | ||
{ value: 'chore', name: 'chore: Other changes that don\'t modify src or test files', emoji: ':hammer:' }, | ||
{ value: 'security', name: 'security: A code change that fixes a security issue', emoji: ':lock:' } | ||
], | ||
useEmoji: false, | ||
emojiAlign: 'center', | ||
useAI: false, | ||
aiNumber: 1, | ||
themeColorCode: '', | ||
scopes: [], | ||
allowCustomScopes: true, | ||
allowEmptyScopes: true, | ||
customScopesAlign: 'bottom', | ||
customScopesAlias: 'custom', | ||
emptyScopesAlias: 'empty', | ||
upperCaseSubject: false, | ||
markBreakingChangeMode: false, | ||
allowBreakingChanges: ['feat', 'fix'], | ||
breaklineNumber: 100, | ||
breaklineChar: '|', | ||
skipQuestions: [], | ||
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }], | ||
customIssuePrefixAlign: 'top', | ||
emptyIssuePrefixAlias: 'skip', | ||
customIssuePrefixAlias: 'custom', | ||
allowCustomIssuePrefix: true, | ||
allowEmptyIssuePrefix: true, | ||
confirmColorize: true, | ||
maxHeaderLength: Infinity, | ||
maxSubjectLength: Infinity, | ||
minSubjectLength: 0, | ||
scopeOverrides: undefined, | ||
defaultBody: '', | ||
defaultIssues: '', | ||
defaultScope: '', | ||
defaultSubject: '' | ||
} |
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,72 @@ | ||
{ | ||
"release-type": "php", | ||
"packages": { | ||
".": { | ||
"package-name": "laravel-package-tpl", | ||
"changelog-path": "/CHANGELOG.md" | ||
} | ||
}, | ||
"include-component-in-tag": false, | ||
"changelog-sections": [ | ||
{ | ||
"type": "feat", | ||
"section": "Features", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Performance Improvements", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "Documentation", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Code Refactoring", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "Tests", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "Build System", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "Continuous Integration", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "Miscellaneous", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "Styles", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "revert", | ||
"section": "Reverts", | ||
"hidden": true | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
".": "1.3.0" | ||
} |
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 |
---|---|---|
|
@@ -60,7 +60,7 @@ representative at an online or offline event. | |
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
[email protected]. | ||
<[email protected]>. | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
All community leaders are obligated to respect the privacy and security of the | ||
|
@@ -116,13 +116,13 @@ the community. | |
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 2.0, available at | ||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. | ||
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>. | ||
|
||
Community Impact Guidelines were inspired by [Mozilla's code of conduct | ||
enforcement ladder](https://github.com/mozilla/diversity). | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see the FAQ at | ||
https://www.contributor-covenant.org/faq. Translations are available at | ||
https://www.contributor-covenant.org/translations. | ||
<https://www.contributor-covenant.org/faq>. Translations are available at | ||
<https://www.contributor-covenant.org/translations>. |
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,13 +1,20 @@ | ||
--- | ||
|
||
# this file is for the labeler workflow job | ||
# Documentation https://github.com/marketplace/actions/labeler | ||
|
||
'type: documentation': | ||
- assets/**/* | ||
- .github/* | ||
- ./*.md | ||
"type: bug": | ||
- head-branch: ['^bug', '^fix', 'bug', 'fix'] | ||
|
||
"type: enhancement": | ||
- head-branch: ['^feature', '^feat', 'feature'] | ||
|
||
"type: documentation": | ||
- changed-files: | ||
- any-glob-to-any-file: ['assets/**/*', '.github/*', './*.md'] | ||
|
||
"type: maintenance": | ||
- changed-files: | ||
- any-glob-to-any-file: ['tests/**/*', '.github/workflows/*'] | ||
|
||
'type: maintenance': | ||
- .dependabot/* | ||
- .github/**/* | ||
- tests/**/* | ||
... |
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 |
---|---|---|
|
@@ -4,21 +4,20 @@ | |
# paths that are modified in the pull request. | ||
# | ||
# To use this workflow, you will need to set up a .github/labeler.yml | ||
# file with configuration. For more information, see: | ||
# file with configuration. For more information, see: | ||
# https://github.com/actions/labeler/blob/master/README.md | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
|
||
name: 🏷️ Apply labels | ||
name: 🏷️ Add labels | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏷️ Apply labels | ||
uses: actions/labeler@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: wayofdev/gh-actions/.github/workflows/[email protected] | ||
with: | ||
os: ubuntu-latest | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
... |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the missing article in the attribution section.
Committable suggestion