Skip to content

Commit

Permalink
setup gha that perform lint on PR update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiftechnify committed Oct 4, 2023
1 parent 5c04e4c commit 23a3fb3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
pull_request:
push:
tags:
- "*"

jobs:
ci:
name: Lint on Update
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "20.x"

- name: Install dependencies
run: yarn

- name: Lint
run: yarn lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dev": "vite dev",
"build": "run-s type-check vite-build",
"preview": "vite preview",
"lint": "run-p lint:*",
"lint": "run-p type-check lint:*",
"lint:eslint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:prettier": "prettier --check --loglevel warn src/**/*.{ts,tsx}",
"fix": "run-s fix:*",
Expand Down

0 comments on commit 23a3fb3

Please sign in to comment.