This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
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 #5 from wickedOne/remove-options-resolver
remove options resolver
- Loading branch information
Showing
11 changed files
with
1,101 additions
and
406 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: "Psalm static analysis" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
phpstan: | ||
name: "Psalm static analysis" | ||
|
||
runs-on: ${{ matrix.operating-system }} | ||
|
||
concurrency: | ||
group: phpstan-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
strategy: | ||
matrix: | ||
dependencies: | ||
- "locked" | ||
php-version: | ||
- "7.4" | ||
operating-system: | ||
- "ubuntu-latest" | ||
include: | ||
- php-version: "7.4" | ||
dependencies: "locked" | ||
operating-system: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "checkout" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "install php" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
tools: composer:v2, cs2pr | ||
|
||
- name: "cache dependencies" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: | | ||
~/.composer/cache | ||
vendor | ||
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" | ||
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" | ||
|
||
- name: "install lowest dependencies" | ||
if: ${{ matrix.dependencies == 'lowest' }} | ||
run: "composer update --prefer-lowest --no-interaction --no-progress --ignore-platform-req=php" | ||
|
||
- name: "install highest dependencies" | ||
if: ${{ matrix.dependencies == 'highest' }} | ||
run: "composer update --no-interaction --no-progress --ignore-platform-req=php" | ||
|
||
- name: "install locked dependencies" | ||
if: ${{ matrix.dependencies == 'locked' }} | ||
run: "composer install --no-interaction --no-progress --ignore-platform-req=php" | ||
|
||
- name: "tests" | ||
run: "vendor/bin/psalm --shepherd --stats" |
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.