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
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,17 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install Node 20
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
cache-dependency-path: "tests/runner-tests/yarn.lock"
node-version: 20
cache: pnpm

- name: Install Node.js dependencies
run: pnpm install

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -148,12 +153,17 @@ jobs:
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2

- name: Install Node 20
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
cache-dependency-path: "tests/integration-tests/yarn.lock"
node-version: 20
cache: pnpm

- name: Install Node.js dependencies
run: pnpm install

- name: Install lld and jq
run: sudo apt-get install -y lld jq protobuf-compiler
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install Node 14

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "14"
cache: yarn
cache-dependency-path: "tests/integration-tests/yarn.lock"
node-version: 20
cache: pnpm

- name: Install Node.js dependencies
run: pnpm install

- name: Install lld
run: sudo apt-get install -y lld jq protobuf-compiler
- uses: actions-rs/cargo@v1
Expand Down
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ lcov.info

/tests/**/build
/tests/**/generated
/tests/**/node_modules
/tests/**/yarn-error.log
/tests/**/pnpm-lock.yaml

# Built solidity contracts.
/tests/**/bin
/tests/**/truffle_output
# Node dependencies
node_modules/

# Docker volumes and debug logs
.postgres
Expand Down
6 changes: 3 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Unit tests are inlined with source code.
**Prerequisites:**
1. PostgreSQL running on localhost:5432 (with initialised `graph-test` database)
2. IPFS running on localhost:5001
3. Yarn (v1)
3. PNPM
4. Foundry (for smart contract compilation)
5. Environment variable `THEGRAPH_STORE_POSTGRES_DIESEL_URL` set

Expand Down Expand Up @@ -56,7 +56,7 @@ cargo test <specific_test_name>
**Prerequisites:**
1. PostgreSQL running on localhost:5432 (with initialised `graph-test` database)
2. IPFS running on localhost:5001
3. Yarn (v1)
3. PNPM
4. Foundry (for smart contract compilation)
5. Environment variable `THEGRAPH_STORE_POSTGRES_DIESEL_URL` set

Expand Down Expand Up @@ -88,7 +88,7 @@ cargo test -p graph-tests --test runner_tests test_name -- --nocapture
1. PostgreSQL running on localhost:3011 (with initialised `graph-node` database)
2. IPFS running on localhost:3001
3. Anvil running on localhost:3021
4. Yarn (v1)
4. PNPM
5. Foundry (for smart contract compilation)
6. **Built graph-node binary** (integration tests require the compiled binary)

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"private": true,
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
}
Loading