Skip to content

Commit

Permalink
add github action for linters
Browse files Browse the repository at this point in the history
  • Loading branch information
untone-survive committed Oct 9, 2023
1 parent 22fe888 commit a43b460
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: rector
on: [ push, pull_request ]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
coverage: none
tools: phpcs

- name: Run rector
uses: zingimmick/[email protected]
with:
args: --dry-run

- name: Run codesniffer
uses: wearerequired/lint-action@v2
with:
php_codesniffer: true

0 comments on commit a43b460

Please sign in to comment.