Skip to content

Commit 1fcc014

Browse files
authored
version 1.0.2 to avoid dev dependency (#18)
* version 1.0.2 to avoid dev dependency
1 parent 08a1195 commit 1fcc014

File tree

4 files changed

+183
-184
lines changed

4 files changed

+183
-184
lines changed

.github/workflows/test-impact.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,38 @@ jobs:
8989
- name: Run PHPStan
9090
run: vendor/bin/phpstan analyze
9191

92+
execute_php_flickr:
93+
name: 1️⃣ PHP - php-flickr-justified-layout
94+
runs-on: ubuntu-latest
95+
needs:
96+
- kill_previous
97+
steps:
98+
- name: Extract branch name
99+
shell: bash
100+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
101+
id: extract_branch
102+
103+
- name: Set up PHP
104+
uses: shivammathur/setup-php@v2
105+
with:
106+
php-version: 8.1
107+
coverage: none
108+
tools: phpstan
109+
env:
110+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111+
112+
- name: Checkout code
113+
uses: actions/checkout@v3
114+
with:
115+
repository: 'LycheeOrg/php-flickr-justified-layout'
116+
117+
- name: Fix composer.json
118+
run: composer require --dev -W "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}"
119+
120+
- name: Run PHPStan
121+
run: composer phpstan
122+
123+
92124
execute_nested_sets:
93125
if: ${{ false }} # disable for now
94126
name: 1️⃣ PHP - Nested sets

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
22

3-
.php-cs-fixer.cache
3+
.php-cs-fixer.cache
4+
.vscode

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"phpstan/phpstan-strict-rules": "^1.4",
1212
"slam/phpstan-extensions": "^6.0",
1313
"squizlabs/php_codesniffer": "^3.5",
14-
"symplify/phpstan-rules": "main-dev",
14+
"symplify/phpstan-rules": "12.0.2",
1515
"thecodingmachine/phpstan-safe-rule": "^1.2"
1616
},
1717
"scripts": {

0 commit comments

Comments
 (0)