Skip to content

Commit 53c3662

Browse files
committed
Run PHPStan Pro visual tests in phpstan-fixer after each push
Amp-Thread-ID: https://ampcode.com/threads/T-01a1a31a-13cc-766a-8581-5c4eb5a12a01
1 parent 4489229 commit 53c3662

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Test projects"
4+
5+
on:
6+
push:
7+
branches:
8+
- "2.3.x"
9+
paths:
10+
- 'src/**'
11+
- 'conf/**'
12+
- 'bin/**'
13+
- 'stubs/**'
14+
- 'composer.lock'
15+
- '.github/workflows/test-projects.yml'
16+
17+
permissions: {}
18+
19+
jobs:
20+
test-projects:
21+
name: "Test projects"
22+
runs-on: "ubuntu-latest"
23+
24+
strategy:
25+
matrix:
26+
include:
27+
# visual tests of PHPStan Pro, run from this commit's source
28+
- repository: "phpstan/phpstan-fixer"
29+
event-type: "test_phpstan_src"
30+
31+
steps:
32+
- name: Harden the runner (Audit all outbound calls)
33+
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
34+
with:
35+
egress-policy: audit
36+
37+
- uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
38+
with:
39+
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
40+
repository: "${{ matrix.repository }}"
41+
event-type: "${{ matrix.event-type }}"
42+
client-payload: '{"ref": "${{ github.sha }}"}'

0 commit comments

Comments
 (0)