Skip to content

Commit

Permalink
Merge pull request #179 from sudhanshutech/add/lint/workflow
Browse files Browse the repository at this point in the history
ci(repo): add lint workflow
  • Loading branch information
nebula-aac authored Nov 17, 2023
2 parents aaab0ee + 2db52b1 commit 3727b2c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Linting and formatting

on:
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install

- name: Run Lint
run: yarn lint && yarn format:check && yarn lint-staged
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ format-fix:
yarn run format:write
```

> [!NOTE]
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability.
<br/>

## Join the Layer5 community!

<a name="contributing"></a><a name="community"></a>
Expand Down

0 comments on commit 3727b2c

Please sign in to comment.