-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
508 additions
and
374 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
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,21 @@ | ||
name: "Check for merge conflicts" | ||
on: | ||
# So that PRs touching the same files as the push are updated | ||
push: | ||
# So that the `dirtyLabel` is removed if conflicts are resolve | ||
# We recommend `pull_request_target` so that github secrets are available. | ||
# In `pull_request` we wouldn't be able to change labels of fork PRs | ||
pull_request_target: | ||
types: [synchronize] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if PRs are have merge conflicts | ||
uses: eps1lon/[email protected] | ||
with: | ||
dirtyLabel: "Merge Conflicts" | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." | ||
commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly." |
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 |
---|---|---|
|
@@ -8,27 +8,14 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Change PHP version | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php8.0 | ||
sudo update-alternatives --set phar /usr/bin/phar8.0 | ||
sudo update-alternatives --set phpdbg /usr/bin/phpdbg8.0 | ||
sudo update-alternatives --set php-cgi /usr/bin/php-cgi8.0 | ||
sudo update-alternatives --set phar.phar /usr/bin/phar.phar8.0 | ||
php -version | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
|
||
- name: Install composer | ||
uses: php-actions/composer@v6 | ||
|
||
- name: Run PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
- name: Run phpstan | ||
run: composer run-script phpstan | ||
configuration: phpstan.neon.dist | ||
memory_limit: 256M | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3.1.0 | ||
uses: actions/checkout@v3.2.0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.