Skip to content

Commit 60f5d35

Browse files
committed
Add GitHub Action to Require Tests in Pull Requests
Signed-off-by: Nathanael Esayeas <[email protected]>
1 parent 1f67618 commit 60f5d35

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/require-tests.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Require Tests'
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: infection/[email protected]
12+
with:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
comment: Could you please add tests to make sure this change works as expected?
15+
fileExtensions: '.php'
16+
testDir: 'tests'
17+
testPattern: '*Test.php'

0 commit comments

Comments
 (0)