Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Oct 12, 2023
1 parent 24ab09d commit f389b74
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
10 changes: 2 additions & 8 deletions src/builder.ts
Original file line number Diff line number Diff line change
@@ -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({});
Expand Down

0 comments on commit f389b74

Please sign in to comment.