diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..e52563f --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,20 @@ +name: Check Pull Request + +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: npm ci + - run: npm run build + - run: npm test + - run: npm run lint diff --git a/package.json b/package.json index 8e8d774..df3a296 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "types": "dist/index.d.ts", "scripts": { "test": "vitest", + "lint": "eslint src", "test:watch": "vitest --watch", "build": "tsc && tsc-alias", "dev": "concurrently 'tsc --watch' 'tsc-alias --watch'", diff --git a/src/builder.ts b/src/builder.ts index 76c4ca5..18f2cf6 100644 --- a/src/builder.ts +++ b/src/builder.ts @@ -1,12 +1,6 @@ -import { - Contracts, - CreateSubscriptionOptions, - Indexer, - Config, - createIndexer, -} from "@/indexer"; +import { Contracts, Indexer, Config, createIndexer } from "@/indexer"; import { Abi, ExtractAbiEventNames } from "abitype"; -import { EventHandler, EventHandlers } from "@/types"; +import { EventHandlers } from "@/types"; export function buildIndexer() { return new IndexerBuilder({});