Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
345 changes: 154 additions & 191 deletions .github/scripts/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .github/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"license": "ISC",
"description": "",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1"
"@actions/core": "^3.0.0",
"@actions/github": "^9.0.0"
},
"devDependencies": {
"@types/node": "^22.15.29",
"@types/node": "^24.0.0",
"typescript": "^5.8.3"
}
}
12 changes: 6 additions & 6 deletions .github/workflows/apiref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -48,7 +48,7 @@ jobs:
run: "apigen/vendor/bin/apigen -c apigen/apigen.neon --output docs -- src vendor/nikic/php-parser vendor/ondrejmirtes/better-reflection vendor/phpstan/phpdoc-parser"

- name: "Upload docs"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: docs
path: docs
Expand All @@ -61,12 +61,12 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Install Node"
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "16"
node-version: "24"

- name: "Download docs"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: docs
path: docs
Expand All @@ -92,7 +92,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.APIREF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.APIREF_AWS_SECRET_ACCESS_KEY }}

- uses: peter-evans/repository-dispatch@v3
- uses: peter-evans/repository-dispatch@v4
with:
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
repository: "phpstan/phpstan"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -46,7 +46,7 @@ jobs:
working-directory: "issue-bot"

- name: "Cache downloads"
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ./issue-bot/tmp
key: "issue-bot-download-v7-${{ github.run_id }}"
Expand All @@ -65,17 +65,17 @@ jobs:
run: |
echo "shards=$(jq -c '{include: [range(length) | {shard: .}]}' matrix.json)" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: playground-cache
path: issue-bot/tmp/playgroundCache.tmp

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: issue-cache
path: issue-bot/tmp/issueCache.tmp

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: matrix
path: issue-bot/matrix.json
Expand All @@ -92,7 +92,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
timeout-minutes: 5
run: ./console.php run ${{ steps.chunk.outputs.phpVersion }} ${{ steps.chunk.outputs.playgroundExamples }}

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: results-${{ steps.chunk.outputs.phpVersion }}-${{ steps.chunk.outputs.chunkNumber }}
path: issue-bot/tmp/results-${{ steps.chunk.outputs.phpVersion }}-*.tmp
Expand All @@ -153,7 +153,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -166,17 +166,17 @@ jobs:
with:
working-directory: "issue-bot"

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
name: playground-cache
path: issue-bot/tmp

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
name: issue-cache
path: issue-bot/tmp

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
pattern: results-*
merge-multiple: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -64,10 +64,10 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Checkout build-cs"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: "phpstan/build-cs"
path: "build-cs"
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -124,7 +124,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-maintained-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: "Merge branch"
uses: everlytic/[email protected]
with:
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
working-directory: "compiler/build"
run: "php ../box/vendor/bin/box compile --no-parallel --sort-compiled-files"

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: phar-file
path: tmp/phpstan.phar
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
id: "checksum"
run: echo "md5=$(md5sum tmp/phpstan.phar | cut -d' ' -f1)" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v6
with:
name: phar-file-checksum
path: tmp/phpstan.phar
Expand Down Expand Up @@ -156,16 +156,16 @@ jobs:
if: github.event_name == 'pull_request' && needs.compiler-tests.outputs.compiler_changed == 'true'
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Get base commit SHA
id: base
run: echo "base_sha=${{ github.event.pull_request.base.sha }}" >> "$GITHUB_OUTPUT"

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24

- name: Install dependencies
working-directory: .github/scripts
Expand All @@ -177,7 +177,7 @@ jobs:

- name: Find phar-file-checksum from base commit
id: find-artifact
uses: actions/github-script@v7
uses: actions/github-script@v8
env:
BASE_SHA: ${{ steps.base.outputs.base_sha }}
ARTIFACT_NAME: phar-file-checksum
Expand All @@ -189,14 +189,14 @@ jobs:

# saved to phar-file-checksum/phpstan.phar
- name: Download old artifact by ID
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
artifact-ids: ${{ steps.find-artifact.outputs.artifact_id }}
run-id: ${{ steps.find-artifact.outputs.run_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload old artifact"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: phar-file-checksum-base
path: phar-file-checksum/phpstan.phar
Expand All @@ -210,7 +210,7 @@ jobs:
steps:
# saved to phpstan.phar
- name: "Download base phpstan.phar"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: phar-file-checksum-base

Expand All @@ -229,18 +229,18 @@ jobs:
needs: download-base-sha-phar
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

# saved to phar-file-checksum/phpstan.phar
- name: "Download phpstan.phar"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: phar-file-checksum
path: phar-file-checksum

# saved to phar-file-checksum-base/phpstan.phar
- name: "Download base phpstan.phar"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: phar-file-checksum-base
path: phar-file-checksum-base
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
git_commit_gpgsign: true

- name: "Checkout phpstan-dist"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: phpstan/phpstan
path: phpstan-dist
Expand All @@ -308,7 +308,7 @@ jobs:
run: echo "sha=$(sed -n '2p' .phar-checksum)" >> $GITHUB_OUTPUT

- name: "Checkout phpstan-src"
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
path: phpstan-src
Expand Down Expand Up @@ -338,7 +338,7 @@ jobs:
fi

- name: "Download phpstan.phar"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: phar-file

Expand Down Expand Up @@ -384,7 +384,7 @@ jobs:

- name: "Commit PHAR - tag"
if: "startsWith(github.ref, 'refs/tags/')"
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_user_name: "phpstan-bot"
commit_user_email: "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-base-on-previous-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Comment PR
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
body: "You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x."
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
Expand Down
Loading
Loading