Skip to content

Commit

Permalink
ci: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Oct 27, 2020
1 parent 7a10ab3 commit f42cd4d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint code

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

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint code
run: yarn run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Hazmi35 <[email protected]>",
"main": "index.js",
"scripts": {
"lint": "eslint **/**.js"
"lint": "eslint --ignore-path .gitignore ."
},
"devDependencies": {
"@types/node": "*",
Expand Down

0 comments on commit f42cd4d

Please sign in to comment.