Skip to content

Commit

Permalink
Create linters.yml for linting css & js. (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Dec 16, 2024
1 parent 7470f68 commit 86eba3c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Static Analysis (Linting)

# This workflow is triggered on pushes to trunk, and any PRs.
on:
push:
branches: [trunk]
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup
uses: WordPress/wporg-repo-tools/.github/actions/setup@trunk
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Lint
uses: WordPress/wporg-repo-tools/.github/actions/lint@trunk
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"setup:tools": "yarn && composer install && TEXTDOMAIN=wporg composer exec update-configs",
"setup:wp": "wp-env run cli bash env/setup.sh",
"update:tools": "composer update && TEXTDOMAIN=wporg composer exec update-configs",
"wp-env": "wp-env"
"wp-env": "wp-env",
"lint:php": "echo \"No PHP lint.\""
},
"workspaces": [
"source/wp-content/themes/wporg-parent-2021"
Expand Down

0 comments on commit 86eba3c

Please sign in to comment.