Skip to content

Commit

Permalink
feat: added lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinPython committed Jul 11, 2024
1 parent c9e73cc commit b1384df
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ESLint Check

on:
push:
branches:
- '*'
pull_request:
types: [opened, reopened, synchronize]

jobs:
lint:
name: ESLint
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run ESLint
run: npm run lint
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "xpbot",
"type": "module",
"version": "0.0.8",
"version": "0.1.0",
"scripts": {
"api": "bun api/index.ts",
"bot": "bun bot/index.ts"
"bot": "bun bot/index.ts",
"lint": "eslint . --config eslint.config.mjs"
},
"devDependencies": {
"@eslint/js": "^9.6.0",
Expand Down

0 comments on commit b1384df

Please sign in to comment.