-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (27 loc) · 1.08 KB
/
phpstan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: PHPStan CI
on: push
jobs:
phpstan:
name: PHPStan Analysis
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Startup
uses: actions/checkout@v3
- name: Download PHP Release
uses: dsaltares/[email protected]
with:
file: PHP-Linux-x86_64-PM5.tar.gz
repo: NetherGamesMC/php-build-scripts
version: "tags/php-8.3-latest"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
- name: Download Composer
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"
- name: Add Composer GitHub access token
run: ./bin/php7/bin/php composer.phar config --global github-oauth.github.com ${{ secrets.ng_token }}
- name: Install Composer dependencies
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction
- name: Run PHPStan
run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress