generated from wayofdev/php-package-tpl
-
-
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.
Merge pull request #291 from wayofdev/docs/updates
- Loading branch information
Showing
33 changed files
with
511 additions
and
183 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
File renamed without changes.
File renamed without changes.
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 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
|
||
* @lotyp |
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
Empty file.
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
File renamed without changes.
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,6 +4,8 @@ | |
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
pull-requests: write | ||
|
@@ -13,15 +15,14 @@ name: 🤞 Auto merge release | |
|
||
jobs: | ||
auto-merge: | ||
if: github.actor == 'lotyp' && startsWith(github.head_ref, 'release-please--') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🤞 Auto-merge pull request | ||
uses: peter-evans/enable-pull-request-automerge@v3 | ||
with: | ||
pull-request-number: ${{ github.event.pull_request.number }} | ||
merge-method: merge | ||
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: wayofdev/gh-actions/.github/workflows/[email protected] | ||
with: | ||
os: ubuntu-latest | ||
pull-request-number: ${{ github.event.pull_request.number }} | ||
actor: lotyp | ||
merge-method: merge | ||
secrets: | ||
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN | ||
token: ${{ secrets.PERSONAL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
with: | ||
configFile: ${{ github.workspace }}/.github/.commitlint.config.mjs | ||
failOnWarnings: false | ||
failOnErrors: false | ||
failOnErrors: true | ||
helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' | ||
|
||
yaml-linting: | ||
|
@@ -42,7 +42,7 @@ jobs: | |
- name: 🧐 Lint YAML files | ||
uses: ibiqlik/[email protected] | ||
with: | ||
config_file: .yamllint.yaml | ||
config_file: .github/.yamllint.yaml | ||
file_or_dir: '.' | ||
strict: true | ||
|
||
|
@@ -59,6 +59,7 @@ jobs: | |
- name: 🧐 Lint Markdown files | ||
uses: DavidAnson/[email protected] | ||
with: | ||
config: '.github/.markdownlint.json' | ||
globs: | | ||
**/*.md | ||
!CHANGELOG.md | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,32 @@ on: # yamllint disable-line rule:truthy | |
branches: | ||
- master | ||
paths: | ||
- 'phpstan*' | ||
- 'psalm*' | ||
- 'composer.*' | ||
- 'src/**' | ||
- 'tests/**' | ||
- 'bin/trap' | ||
- '.php-cs-fixer.dist.php' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'phpstan*' | ||
- 'psalm*' | ||
- 'composer.*' | ||
- 'src/**' | ||
- 'tests/**' | ||
- 'bin/trap' | ||
- '.php-cs-fixer.dist.php' | ||
|
||
name: 🔍 Static analysis | ||
|
||
jobs: | ||
static-analysis: | ||
phpstan: | ||
timeout-minutes: 4 | ||
runs-on: ${{ matrix.os }} | ||
concurrency: | ||
cancel-in-progress: true | ||
group: static-analysis-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
group: phpstan-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
|
@@ -71,3 +75,54 @@ jobs: | |
|
||
- name: 🔍 Run static analysis using phpstan/phpstan | ||
run: composer stan:ci | ||
|
||
psalm: | ||
timeout-minutes: 4 | ||
runs-on: ${{ matrix.os }} | ||
concurrency: | ||
cancel-in-progress: true | ||
group: psalm-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
php-version: | ||
- '8.1' | ||
dependencies: | ||
- locked | ||
steps: | ||
- name: 📦 Check out the codebase | ||
uses: actions/[email protected] | ||
|
||
- name: 🛠️ Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, opcache, pcntl, posix | ||
ini-values: error_reporting=E_ALL | ||
coverage: xdebug | ||
|
||
- name: 🛠️ Setup problem matchers | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
|
||
- name: 🤖 Validate composer.json and composer.lock | ||
run: composer validate --ansi --strict | ||
|
||
- name: 🔍 Get composer cache directory | ||
uses: wayofdev/gh-actions/actions/composer/[email protected] | ||
|
||
- name: ♻️ Restore cached dependencies installed with composer | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_DIR }} | ||
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} | ||
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | ||
|
||
- name: 📥 Install "${{ matrix.dependencies }}" dependencies | ||
uses: wayofdev/gh-actions/actions/composer/[email protected] | ||
with: | ||
dependencies: ${{ matrix.dependencies }} | ||
|
||
- name: 🔍 Run static analysis using vimeo/psalm | ||
run: composer psalm:ci |
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="composer-normalize" version="^2.42.0" installed="2.42.0" location="./.phive/composer-normalize" copy="false"/> | ||
<phar name="composer-require-checker" version="^4.10.0" installed="4.10.0" location="./.phive/composer-require-checker" copy="false"/> | ||
<phar name="composer-require-checker" version="^4.11.0" installed="4.11.0" location="./.phive/composer-require-checker" copy="false"/> | ||
</phive> |
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
Oops, something went wrong.