-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
36 lines (36 loc) · 1.05 KB
/
action.yml
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
name: 'PHP Compatibility'
description: 'Runs PhpCompatibility/PhpCompatibility on the given source code'
branding:
icon: check-circle
color: yellow
inputs:
test-versions:
description: 'Versions to test as specified by phpcompatibility composer package'
required: false
default: '8.0-'
paths:
description: 'Paths to test'
required: false
default: ${{ github.workspace }}
skip-php-setup:
description: 'Skip PHP Setup (useful if it was setup in another step)'
required: false
default: 'false'
extensions:
descriptions: 'Files only with this extension(s) will be tested'
required: false,
default: 'php'
runs:
using: 'composite'
steps:
- name: Setup PHP using setup-php action
if: ${{ inputs.skip-php-setup == 'false' }}
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- run: $GITHUB_ACTION_PATH/entrypoint.sh
shell: bash
env:
TEST_VERSIONS: ${{ inputs.test-versions }}
PATHS: ${{ inputs.paths }}
EXTENSIONS: ${{ inputs.extensions }}