Skip to content

Commit

Permalink
Add css lint config and GitHub action, fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Oct 13, 2024
1 parent dca0710 commit 75e22df
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 115 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Static Analysis (Linting)

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

jobs:
check:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: npm install and build
run: |
npm ci
npm run build
- name: Lint JavaScript and Styles
run: |
npm run lint:css
29 changes: 28 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"homepage": "https://github.com/Automattic/meeting-calendar#readme",
"devDependencies": {
"@wordpress/env": "9.7.0",
"@wordpress/scripts": "27.9.0"
"@wordpress/scripts": "27.9.0",
"@wordpress/stylelint-config": "21.34.0"
}
}
Loading

0 comments on commit 75e22df

Please sign in to comment.