Skip to content

Commit

Permalink
add github workflow for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Jul 27, 2023
1 parent 7708abd commit a75838b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ESLint

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
NODE_VERSION: 18

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm i

- name: Lint
run: npm run lint
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"license": "MIT",
"scripts": {
"dev": "nodemon src/index.js",
"start": "node src/index.js"
"start": "node src/index.js",
"lint": "eslint src/**/*.js"
},
"dependencies": {
"@discordjs/opus": "^0.9.0",
Expand Down

0 comments on commit a75838b

Please sign in to comment.