-
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 branch 'master' into dependabot/composer/laravel-infrastructure…
…/master/mortexa/laravel-arkitect-tw-0.4or-tw-0.6
- Loading branch information
Showing
88 changed files
with
6,084 additions
and
2,786 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
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,6 +1,6 @@ | ||
1. Maintainers have the last word to merge or refuse PRs. | ||
2. All contributions have to pass all CI tests to be merged. | ||
3. All PRs have to follow the [conventional commits v1.0.x](https://www.conventionalcommits.org/en/v1.0.0-beta.4/) | ||
3. All PRs have to follow the [conventional commits v1.0.x](https://www.conventionalcommits.org/en/v1.0.0/) | ||
- Following the conventional commits scopes | ||
- github to add or modify files inside `.github/` | ||
- `<PROJECT_NAME>` in case you make changes in a project |
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 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: laravel-sentry-handler-test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'laravel-sentry-handler/**' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'laravel-sentry-handler/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: laravel-sentry-handler | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php_version: [ 8.1, 8.2 ] | ||
include: | ||
- php_version: 8.2 | ||
record_coverage: true | ||
concurrency: | ||
group: laravel-sentry-handler-test-${{ github.workflow }}-${{ github.ref }}-${{ matrix.php_version }} | ||
cancel-in-progress: true | ||
steps: | ||
|
||
- name: Checkout project | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Initialize PHP ${{ matrix.php_version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_version }} | ||
coverage: pcov | ||
|
||
- name: Configure Composer cache | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: laravel-sentry-handler/vendor | ||
key: ${{ runner.os }}-node-php_${{ matrix.php_version }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-php_${{ matrix.php_version }}- | ||
- name: Validate Composer.json | ||
run: composer validate --strict | ||
|
||
- name: Composer install | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install -o --no-interaction --prefer-dist | ||
|
||
- name: Smelly Code Detector | ||
if: github.event_name == 'pull_request' && matrix.record_coverage | ||
run: | | ||
vendor/bin/smelly-code-detector inspect src | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g" > tmp.txt | ||
sed '$d' tmp.txt > tmp2.txt | ||
sed '$d' tmp2.txt > tmp.txt | ||
sed '2d' tmp.txt > tmp2.txt | ||
sed '2d' tmp2.txt > tmp.txt | ||
sed '2d' tmp.txt > tmp2.txt | ||
sed 's/+/|/g' tmp2.txt > ../.github/workflows/smelly-code-detector.txt | ||
- uses: NejcZdovc/comment-pr@v2 | ||
if: github.event_name == 'pull_request' && matrix.record_coverage | ||
with: | ||
file: smelly-code-detector.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Test | ||
run: vendor/bin/phpunit | ||
|
||
- name: Send coverage | ||
if: ${{ matrix.record_coverage }} | ||
run: bash <(curl -s https://codecov.io/bash) -f coverage/clover.xml -F laravel-sentry-handler | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
Oops, something went wrong.