Skip to content

Commit

Permalink
Add GitHub action to lint code (#19)
Browse files Browse the repository at this point in the history
Implements a GitHub action to lint code automatically. This aims to further improve code quality by not allowing code with linting errors to be merged.
  • Loading branch information
sinukaarel authored Sep 26, 2024
1 parent d532dcb commit 0691b90
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint the codebase

on: pull_request

jobs:
phpcs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_version: 7.0
- uses: php-actions/composer@v6
with:
php_version: 7.0
command: run lint

0 comments on commit 0691b90

Please sign in to comment.