forked from Airalo/airalo-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 948 Bytes
/
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
31
32
33
34
35
36
37
name: PHPStan
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Run PHPStan (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ "7.4" ]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_CICD }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GH_TOKEN_CICD }}"} }'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-versions }}
version: 2.x
dev: yes
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd, zip, json, fileinfo, dom
coverage: xdebug
- name: Run PHPStan
run: composer phpstan