Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/php-version-sniff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: PHP Version Compatibility

on:
- push
- pull_request
# Allow manually triggering the workflow.
- workflow_dispatch

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
php-codesniffer:
strategy:
matrix:
php: [ '8.0', '8.1' ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: pipeline-components/php-codesniffer@master
with:
options: >-
-s
--ignore='*vendor/*'
--standard=PHPCompatibility
--extensions=php
--runtime-set testVersion ${{ matrix.php }}