Skip to content

Commit 11818a5

Browse files
committed
Add php version sniff
1 parent f7a892c commit 11818a5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: PHP Version Compatibility
3+
4+
on:
5+
- push
6+
- pull_request
7+
# Allow manually triggering the workflow.
8+
- workflow_dispatch
9+
10+
# Cancels all previous workflow runs for the same branch that have not yet completed.
11+
concurrency:
12+
# The concurrency group contains the workflow name and the branch name.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
php-codesniffer:
18+
strategy:
19+
matrix:
20+
php: [ '8.0', '8.1' ]
21+
runs-on: ubuntu-20.04
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: pipeline-components/php-codesniffer@master
25+
with:
26+
options: >-
27+
-s
28+
--ignore='*vendor/*'
29+
--standard=PHPCompatibility
30+
--extensions=php
31+
--runtime-set testVersion ${{ matrix.php }}

0 commit comments

Comments
 (0)