-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 881 Bytes
/
Copy pathrector.yml
File metadata and controls
38 lines (30 loc) · 881 Bytes
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
37
38
name: Rector
permissions:
contents: read
on:
pull_request:
jobs:
rector:
runs-on: ubuntu-latest
timeout-minutes: 3
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP and Composer
uses: ./.github/actions/setup-php-composer
with:
flux-username: ${{ secrets.FLUX_USERNAME }}
flux-license-key: ${{ secrets.FLUX_LICENSE_KEY }}
- run: mkdir -p /tmp/rector
- name: Cache Rector tmp dir
uses: actions/cache@v4
with:
path: /tmp/rector
key: ${{ runner.os }}-rector-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-rector-
- name: Check code style
run: vendor/bin/rector --dry-run