Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@
"WebSearch",
"Bash(git clone:*)",
"WebFetch(domain:thegraph.academy)",
"WebFetch(domain:thegraph.com)"
"WebFetch(domain:thegraph.com)",
"Bash(pnpm codegen:*)",
"Bash(pnpm build:*)",
"Bash(git checkout:*)",
"Bash(git stash:*)",
"Bash(chmod:*)",
"Bash(tree:*)",
"Bash(pnpm install)",
"Bash(pnpm --filter @graphprotocol/graph-horizon-subgraph codegen:*)",
"Bash(pnpm test:*)",
"Bash(pnpm --filter @graphprotocol/graph-horizon-subgraph test)",
"Bash(pnpm --filter @graphprotocol/graph-horizon-validation exec tsc:*)",
"Bash(pnpm add:*)"
]
}
}
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
node-version:
description: The version of Node.js to install
required: true
default: 20.16.0
default: 22.x

runs:
using: composite
Expand Down
35 changes: 10 additions & 25 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,26 @@ concurrency:
permissions: {}

jobs:
build:
name: Build
subgraph:
name: Subgraph
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
- name: Codegen
run: pnpm --filter @graphprotocol/graph-horizon-subgraph codegen
- name: Build
run: pnpm --filter @graphprotocol/graph-horizon-subgraph build

types:
name: Types
validation:
name: Validation
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
- run: pnpm check

lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
- run: pnpm lint

test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
- run: pnpm test
- name: Type check
run: pnpm --filter @graphprotocol/graph-horizon-validation exec tsc --noEmit
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,10 @@ dist
# End of https://www.toptal.com/developers/gitignore/api/node

# macOS crap
.DS_Store
.DS_Store

# subgraphs
generated
build
**/tests/.bin
**/tests/.latest.json
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "graph-horizon",
"private": true,
"packageManager": "pnpm@10.6.2",
"scripts": {
"build": "pnpm -r build",
"test": "pnpm -r test",
"clean": "pnpm -r clean"
}
}
Loading
Loading