Skip to content

Commit

Permalink
Linting action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Oct 1, 2024
1 parent 24b3ced commit 5c243f4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint

on: [push, pull_request]

jobs:
test:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: setup ruff
run: pip install ruff

- name: check ruff linter
run: ruff check --output-format=github .

- name: check ruff formatter
run: ruff format --check .

- uses: actions/cache@v3
with:
path: .php-cs-fixer.cache
key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.sha }}
restore-keys: |
${{ runner.OS }}-${{ github.repository }}-phpcsfixer-
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga




0 comments on commit 5c243f4

Please sign in to comment.