We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7a892c + 11818a5 commit 1e3b2adCopy full SHA for 1e3b2ad
1 file changed
.github/workflows/php-version-sniff.yml
@@ -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