File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+ name : " Test PHPStan"
4+
5+ on :
6+ pull_request :
7+ push :
8+ branches :
9+ - " 2.3.x"
10+
11+ permissions :
12+ contents : read
13+
14+ jobs :
15+ tests :
16+ name : " Tests"
17+ runs-on : " ubuntu-latest"
18+ timeout-minutes : 60
19+
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ php-version :
24+ - " 8.2"
25+ - " 8.3"
26+ - " 8.4"
27+ - " 8.5"
28+
29+ steps :
30+ - name : Harden the runner (Audit all outbound calls)
31+ uses : step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
32+ with :
33+ egress-policy : audit
34+
35+ - name : " Checkout"
36+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
37+
38+ - name : " Checkout phpstan-src"
39+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40+ with :
41+ repository : phpstan/phpstan-src
42+ path : phpstan-src
43+ ref : 2.3.x
44+
45+ - name : " Install PHP"
46+ uses : " shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # v2
47+ with :
48+ coverage : " none"
49+ php-version : " ${{ matrix.php-version }}"
50+ extensions : ds,mbstring
51+ ini-file : development
52+ ini-values : memory_limit=-1
53+
54+ - name : " Install dependencies"
55+ working-directory : phpstan-src
56+ run : " composer install --no-interaction --no-progress"
57+
58+ - name : " Remove stable phpdoc-parser"
59+ working-directory : phpstan-src
60+ run : " rm -r vendor/phpstan/phpdoc-parser/src"
61+
62+ - name : " Copy phpdoc-parser"
63+ run : " cp -r src/ phpstan-src/vendor/phpstan/phpdoc-parser/src"
64+
65+ - name : " Tests"
66+ working-directory : phpstan-src
67+ run : " make tests"
68+
69+ - name : " PHPStan"
70+ if : matrix.php-version == '8.5'
71+ working-directory : phpstan-src
72+ run : " make phpstan"
You can’t perform that action at this time.
0 commit comments