Skip to content

Commit

Permalink
ci: Add linter action
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Nov 16, 2023
1 parent 7059db9 commit bb4b85f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/lint-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Simple workflow for deploying static content to GitHub Pages
name: Lint

on:
# Runs on pushes targeting the default branch
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
checks: write
contents: read

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 21
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run linters
uses: wearerequired/lint-action@v2
with:
# Enable your linters here
eslint: true
prettier: true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"eslint": "^8.53.0",
"eslint-plugin-solid": "^0.13.0",
"peer": "^1.0.1",
"prettier": "^3.1.0",
"solid-devtools": "^0.28.1",
"typescript": "^5.2.2",
"typescript-event-target": "^1.1.0",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit bb4b85f

Please sign in to comment.