Skip to content

Commit aa62051

Browse files
committed
Improve CI
1 parent 9baf6b2 commit aa62051

2 files changed

Lines changed: 30 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -348,20 +348,3 @@ jobs:
348348

349349
- name: "Tests"
350350
run: "${{ matrix.script }}"
351-
352-
test-projects:
353-
name: "Test projects"
354-
if: github.ref == 'refs/heads/master'
355-
runs-on: "ubuntu-latest"
356-
357-
strategy:
358-
matrix:
359-
repository:
360-
- "ondrejmirtes/lorem"
361-
362-
steps:
363-
- uses: peter-evans/repository-dispatch@v1
364-
with:
365-
token: ${{ secrets.REPO_ACCESS_TOKEN }}
366-
repository: "${{ matrix.repository }}"
367-
event-type: test_phpstan
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
- "master"
9+
paths:
10+
- '.github/**'
11+
- 'phpstan'
12+
- 'phpstan.phar'
13+
- 'bootstrap.php'
14+
15+
jobs:
16+
test-projects:
17+
name: "Test projects"
18+
runs-on: "ubuntu-latest"
19+
20+
strategy:
21+
matrix:
22+
repository:
23+
- "ondrejmirtes/lorem"
24+
25+
steps:
26+
- uses: peter-evans/repository-dispatch@v1
27+
with:
28+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
29+
repository: "${{ matrix.repository }}"
30+
event-type: test_phpstan

0 commit comments

Comments
 (0)