Skip to content

Commit

Permalink
Dodanie sprawdzania poprawności kodu php (#498)
Browse files Browse the repository at this point in the history
* Dodanie sprawdzania poprawności kodu php

* dodanie matrix

* Update check-php-code.yml

* Update check-php-code.yml
  • Loading branch information
wojsmol authored Jun 2, 2024
1 parent 50dbf21 commit 3c9fe0b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check-php-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check PHP Code

on:
pull_request:
branches:
- 5.*-dev
push:
branches:
- 5.*-dev
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check-php-code:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
permissions: read-all

steps:
- name: Checkout Source Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Check PHP syntax errors for PHP 8.1
if: matrix.php == '8.1'
uses: StephaneBour/[email protected]
with:
dir: '.'

- name: Check PHP syntax errors for PHP 8.2
if: matrix.php == '8.2'
uses: StephaneBour/[email protected]
with:
dir: '.'

0 comments on commit 3c9fe0b

Please sign in to comment.