File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 11name : Run tests
22
33on :
4- pull_request :
4+ pull_request_target :
5+ types : [opened, synchronize]
56 schedule :
67 - cron : ' 0 0 * * *'
78
89jobs :
9- php-tests :
10+ access_check :
1011 runs-on : ubuntu-latest
12+ steps :
13+ - name : Check user permissions
14+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'MEMBER' }}
15+ run : |
16+ echo "Action was not triggered by an organization member. Exiting now."
17+ exit 1
1118
19+ php-tests :
20+ runs-on : ubuntu-latest
21+ needs : access_check
1222 strategy :
1323 matrix :
1424 db : ['mysql', 'pgsql']
3242
3343 steps :
3444 - name : Checkout code
35- uses : actions/checkout@v3
45+ uses : actions/checkout@v4
46+ with :
47+ ref : ${{ github.event.pull_request.head.sha }}
3648
3749 - name : Setup PHP
3850 uses : shivammathur/setup-php@v2
You can’t perform that action at this time.
0 commit comments