forked from phpseclib/bcmath_compat
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.35 KB
/
Copy pathrector.yaml
File metadata and controls
36 lines (30 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# github action that checks code with Rector
name: Rector
on:
pull_request: null
jobs:
rector:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == 'nanasess/bcmath-polyfill'
steps:
-
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# Must be used to trigger workflow after push
token: ${{ secrets.ACCESS_TOKEN }}
-
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: 8.1
coverage: none
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v3
- run: vendor/bin/rector --ansi
# @todo apply coding standard if used
-
# commit only to core contributors who have repository access
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: '[rector] Rector fixes'
commit_author: 'GitHub Action <actions@github.com>'
commit_user_email: 'action@github.com'