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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/smooth-balloons-stare.md

This file was deleted.

9 changes: 6 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ runs:
steps:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Enable corepack for modern yarn
- name: Enable Corepack
shell: bash
run: corepack enable
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache: 'pnpm'
- name: Set up pnpm via Corepack
shell: bash
run: corepack prepare [email protected] --activate
- name: Install dependencies
shell: bash
run: yarn --immutable
run: pnpm install --frozen-lockfile
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: yarn build || yarn build
run: pnpm build || pnpm build
4 changes: 2 additions & 2 deletions .github/workflows/ci-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
pnpm build || pnpm build
- name: Run tests
run: |
pushd packages/contracts
yarn test:coverage
pnpm test:coverage
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-data-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- name: Build
run: |
pushd packages/data-edge
yarn build
pnpm build
- name: Run tests
run: yarn test
run: pnpm test
51 changes: 51 additions & 0 deletions .github/workflows/ci-hardhat-graph-protocol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI - packages/toolshed

env:
CI: true

on:
push:
branches: "*"
paths:
- packages/toolshed/**
pull_request:
branches: "*"
paths:
- packages/toolshed/**
workflow_dispatch:

jobs:
test-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up environment
uses: ./.github/actions/setup
- name: Build contracts
run: |
pushd packages/contracts
pnpm build
popd
- name: Build horizon
run: |
pushd packages/horizon
pnpm build
popd
- name: Build subgraph service
run: |
pushd packages/subgraph-service
pnpm build
popd
- name: Build toolshed
run: |
pushd packages/toolshed
pnpm build
popd
- name: Build hardhat-graph-protocol
run: |
pushd packages/hardhat-graph-protocol
pnpm build
popd
15 changes: 10 additions & 5 deletions .github/workflows/ci-horizon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,29 @@ jobs:
- name: Build contracts
run: |
pushd packages/contracts
yarn build
pnpm build
popd
- name: Build horizon
run: |
pushd packages/horizon
yarn build
pnpm build
popd
- name: Build subgraph service
run: |
pushd packages/subgraph-service
yarn build
pnpm build
popd
- name: Build toolshed
run: |
pushd packages/toolshed
pnpm build
popd
- name: Build hardhat-graph-protocol
run: |
pushd packages/hardhat-graph-protocol
yarn build
pnpm build
popd
- name: Run tests
run: |
pushd packages/horizon
yarn test
pnpm test
15 changes: 10 additions & 5 deletions .github/workflows/ci-subgraph-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,29 @@ jobs:
- name: Build contracts
run: |
pushd packages/contracts
yarn build
pnpm build
popd
- name: Build horizon
run: |
pushd packages/horizon
yarn build
pnpm build
popd
- name: Build subgraph service
run: |
pushd packages/subgraph-service
yarn build
pnpm build
popd
- name: Build toolshed
run: |
pushd packages/toolshed
pnpm build
popd
- name: Build hardhat-graph-protocol
run: |
pushd packages/hardhat-graph-protocol
yarn build
pnpm build
popd
- name: Run tests
run: |
pushd packages/subgraph-service
yarn test
pnpm test
4 changes: 2 additions & 2 deletions .github/workflows/ci-token-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Build
run: |
pushd packages/token-distribution
yarn build
pnpm build
- name: Run tests
run: |
pushd packages/token-distribution
yarn test
pnpm test
46 changes: 46 additions & 0 deletions .github/workflows/ci-toolshed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI - packages/toolshed

env:
CI: true

on:
push:
branches: "*"
paths:
- packages/toolshed/**
pull_request:
branches: "*"
paths:
- packages/toolshed/**
workflow_dispatch:

jobs:
test-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up environment
uses: ./.github/actions/setup
- name: Build contracts
run: |
pushd packages/contracts
pnpm build
popd
- name: Build horizon
run: |
pushd packages/horizon
pnpm build
popd
- name: Build subgraph service
run: |
pushd packages/subgraph-service
pnpm build
popd
- name: Build toolshed
run: |
pushd packages/toolshed
pnpm build
popd
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
required: true
type: choice
options:
- contracts
- sdk
- contracts
- sdk
tag:
description: 'Tag to publish'
required: true
Expand All @@ -27,10 +27,10 @@ jobs:
submodules: recursive
- name: Set up environment
uses: ./.github/actions/setup
- name: Set npm token for publishing
run: pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.GRAPHPROTOCOL_NPM_TOKEN }}
- name: Publish 🚀
shell: bash
run: |
pushd packages/${{ inputs.package }}
yarn npm publish --tag ${{ inputs.tag }} --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.GRAPHPROTOCOL_NPM_TOKEN }}
pnpm publish --tag ${{ inputs.tag }} --access public --no-git-checks
6 changes: 3 additions & 3 deletions .github/workflows/verifydeployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
pnpm build || pnpm build
- name: Save build artifacts
uses: actions/upload-artifact@v3
Expand All @@ -55,14 +55,14 @@ jobs:
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
pnpm build || pnpm build
- name: Get build artifacts
uses: actions/download-artifact@v3
with:
name: contract-artifacts

- name: Verify contracts on Defender
run: cd packages/contracts && yarn hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }}
run: cd packages/contracts && pnpm hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }}
env:
DEFENDER_API_KEY: "${{ secrets.DEFENDER_API_KEY }}"
DEFENDER_API_SECRET: "${{ secrets.DEFENDER_API_SECRET }}"
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
yarn-debug.log*
yarn-error.log*
node.log

# Dependency directories
node_modules/
Expand Down Expand Up @@ -45,7 +46,9 @@ localNetwork.json
arbitrum-addresses-local.json
tx-*.log
addresses-fork.json

addresses-hardhat.json
addresses-localhost.json
addresses-local-network.json
# Keys
.keystore

Expand Down
2 changes: 0 additions & 2 deletions .yarnrc.yml

This file was deleted.

Loading
Loading