Skip to content

Commit

Permalink
Add GitHub Action to Require Tests in Pull Requests (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriter authored Oct 3, 2024
1 parent 342b493 commit f0a5876
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/require-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Require Tests on Code Change'

on:
pull_request_target:
types: [opened]

jobs:
check:
name: 'Require Tests on Code Change'

runs-on: ubuntu-22.04

steps:
- name: "Execute tests-checker-action"
uses: infection/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment: Could you please add tests to make sure this change works as expected?
fileExtensions: '.php'
testDir: 'tests'
testPattern: '*Test.php'

0 comments on commit f0a5876

Please sign in to comment.