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 fbf657c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Lint

on: [push, pull_request]

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

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

- uses: actions/setup-python@v5
with:
python-version: '3.9'

- 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-
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: memcached

- name: PHP-CS-Fixer
run: |
php composer.phar install --working-dir=tools/php-cs-fixer
tools/php-cs-fixer/vendor/bin/php-cs-fixer check

0 comments on commit fbf657c

Please sign in to comment.