Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuCh3n committed Nov 15, 2023
1 parent b4b6fd8 commit 0b8bb66
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/codestyle.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/codestyle2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CheckStyleAndLint

on:
pull_request:
paths:
- "src/**.php"
- "example/**.php"

jobs:
phpcs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, 8.1, 8.2]
stability: [prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: cs2pr, phplint, phpcs

- name: Run phplint
run: phplint --no-configuration --no-cache --no-interaction ./src/* ./example/*

- name: Run phpcs
run: phpcs -q --report=checkstyle --extensions=php ./src/* | cs2pr

0 comments on commit 0b8bb66

Please sign in to comment.