Skip to content

Commit a7d22d9

Browse files
authored
Merging from main for Horizon upgrades in preparation for contract PRs (#1186)
1 parent 79ed5a1 commit a7d22d9

File tree

389 files changed

+16577
-9442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+16577
-9442
lines changed

.github/actions/setup/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ runs:
44
using: composite
55

66
steps:
7+
- name: Install system dependencies
8+
shell: bash
9+
run: |
10+
sudo apt-get update
11+
sudo apt-get install -y libudev-dev libusb-1.0-0-dev
712
- name: Install Foundry
813
uses: foundry-rs/foundry-toolchain@v1
914
- name: Enable Corepack
@@ -12,7 +17,7 @@ runs:
1217
- name: Install Node.js
1318
uses: actions/setup-node@v4
1419
with:
15-
node-version: 22
20+
node-version: 20
1621
cache: 'pnpm'
1722
- name: Set up pnpm via Corepack
1823
shell: bash

.github/workflows/build-test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build and Test
2+
3+
env:
4+
CI: true
5+
STUDIO_API_KEY: ${{ secrets.STUDIO_API_KEY }}
6+
7+
on:
8+
pull_request:
9+
branches: '*'
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
name: Build and Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
22+
- name: Set up environment
23+
uses: ./.github/actions/setup
24+
25+
- name: Build all packages
26+
run: pnpm build
27+
28+
- name: Test all packages
29+
run: pnpm -r --sequential run test
30+
31+
- name: Test with coverage
32+
run: pnpm -r --sequential run test:coverage
33+
34+
- name: Find coverage files
35+
id: coverage_files
36+
run: |
37+
# Find all coverage-final.json files
38+
COVERAGE_FILES=$(find ./packages -name "coverage-final.json" -path "*/reports/coverage/*" | tr '\n' ',' | sed 's/,$//')
39+
echo "files=$COVERAGE_FILES" >> $GITHUB_OUTPUT
40+
echo "Found coverage files: $COVERAGE_FILES"
41+
42+
- name: Upload coverage reports
43+
if: steps.coverage_files.outputs.files != ''
44+
uses: codecov/codecov-action@v3
45+
with:
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
files: ${{ steps.coverage_files.outputs.files }}
48+
flags: unittests
49+
name: graphprotocol-contracts
50+
fail_ci_if_error: true

.github/workflows/build.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ci-contracts.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/ci-data-edge.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/ci-hardhat-graph-protocol.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ env:
55

66
on:
77
push:
8-
branches: "*"
8+
branches: '*'
99
paths:
1010
- packages/toolshed/**
1111
pull_request:
12-
branches: "*"
12+
branches: '*'
1313
paths:
1414
- packages/toolshed/**
1515
workflow_dispatch:
@@ -48,4 +48,4 @@ jobs:
4848
run: |
4949
pushd packages/hardhat-graph-protocol
5050
pnpm build
51-
popd
51+
popd

.github/workflows/ci-horizon.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ env:
55

66
on:
77
push:
8-
branches: "*"
8+
branches: '*'
99
paths:
1010
- packages/horizon/**
1111
pull_request:
12-
branches: "*"
12+
branches: '*'
1313
paths:
1414
- packages/horizon/**
1515
workflow_dispatch:
@@ -52,4 +52,4 @@ jobs:
5252
- name: Run tests
5353
run: |
5454
pushd packages/horizon
55-
pnpm test
55+
pnpm test

.github/workflows/ci-subgraph-service.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ env:
55

66
on:
77
push:
8-
branches: "*"
8+
branches: '*'
99
paths:
1010
- packages/subgraph-service/**
1111
pull_request:
12-
branches: "*"
12+
branches: '*'
1313
paths:
1414
- packages/subgraph-service/**
1515
workflow_dispatch:
@@ -52,4 +52,4 @@ jobs:
5252
- name: Run tests
5353
run: |
5454
pushd packages/subgraph-service
55-
pnpm test
55+
pnpm test

.github/workflows/ci-token-dist.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ci-toolshed.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ env:
55

66
on:
77
push:
8-
branches: "*"
8+
branches: '*'
99
paths:
1010
- packages/toolshed/**
1111
pull_request:
12-
branches: "*"
12+
branches: '*'
1313
paths:
1414
- packages/toolshed/**
1515
workflow_dispatch:
@@ -43,4 +43,4 @@ jobs:
4343
run: |
4444
pushd packages/toolshed
4545
pnpm build
46-
popd
46+
popd

0 commit comments

Comments
 (0)