Skip to content

Commit

Permalink
ci: fix endpoints for token distribution repo and split ci per package
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Nov 4, 2024
1 parent 3eb16c8 commit 855daba
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ runs:
- name: Install dependencies
shell: bash
run: yarn --immutable
- name: Build
shell: bash
run: yarn build || yarn build
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build

env:
CI: true
STUDIO_API_KEY: ${{ secrets.STUDIO_API_KEY }}

on:
push:
Expand All @@ -17,4 +18,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
uses: ./.github/actions/setup
- name: Build
run: yarn build || yarn build
4 changes: 4 additions & 0 deletions .github/workflows/ci-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
- name: Run tests
run: |
pushd packages/contracts
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-data-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: |
pushd packages/data-edge
yarn build
- name: Run tests
run: yarn test
5 changes: 5 additions & 0 deletions .github/workflows/ci-token-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI - packages/token-distribution

env:
CI: true
STUDIO_API_KEY: ${{ secrets.STUDIO_API_KEY }}

on:
push:
Expand All @@ -22,5 +23,9 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: |
pushd packages/token-distribution
yarn build
- name: Run tests
run: yarn test
4 changes: 4 additions & 0 deletions .github/workflows/e2e-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
- name: Run e2e tests
run: |
git clone https://github.com/OffchainLabs/nitro-testnode/
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/verifydeployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup

- name: Compile contracts
run: yarn build
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
- name: Save build artifacts
uses: actions/upload-artifact@v3
Expand All @@ -48,6 +50,10 @@ jobs:
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: |
pushd packages/contracts
yarn build || yarn build
- name: Get build artifacts
uses: actions/download-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions packages/token-distribution/.env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MNEMONIC=
ETHERSCAN_API_KEY=
INFURA_KEY=
STUDIO_API_KEY=
4 changes: 2 additions & 2 deletions packages/token-distribution/.graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ sources:
- name: graph-network
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet
endpoint: https://gateway.thegraph.com/api/${STUDIO_API_KEY}/subgraphs/id/9Co7EQe5PgW3ugCUJrJgRv4u9zdEuDJf8NvMWftNsBH8
retry: 5

- name: token-distribution
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/graphprotocol/token-distribution
endpoint: https://gateway.thegraph.com/api/${STUDIO_API_KEY}/subgraphs/id/ChfAJn6jQEBjVqtdUiThfG6sWy2Sr5XQPNucE9DkgXSN
retry: 5
transforms:
- autoPagination:
Expand Down

0 comments on commit 855daba

Please sign in to comment.