-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) 路 1.34 KB
/
Copy pathphpcs-ruleset-validator.yml
File metadata and controls
45 lines (38 loc) 路 1.34 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
37
38
39
40
41
42
43
44
45
name: Ruleset validator
on:
workflow_dispatch:
pull_request:
types: [ready_for_review]
release:
types: [published]
jobs:
validator:
name: Ruleset validator
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: 8.4
coverage: none
- name: Get Composer cache directory
id: composer-cache
run: |
echo "composer_dir={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT
- name: Retrieve Composer鈥榮 cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ${{ steps.composer-cache.outputs.composer_dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install composer dependencies
run: "composer install --no-interaction --no-progress --no-scripts"
- name: Validate ruleset
uses: szepeviktor/phpcs-ruleset-validator@f07738521ac7d7dd31ccec1920022e6fae617bcb # v0.4.0
with:
xml_ruleset: IxDFCodingStandard/ruleset.xml