Skip to content

Commit

Permalink
Add env variables to Github job
Browse files Browse the repository at this point in the history
  • Loading branch information
timjrobinson committed Jun 29, 2023
1 parent 7f253c1 commit 2a7a8e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:

jobs:
Build:
env:
BALANCER_SUBGRAPH: https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx
MASTERCHEF_SUBGRAPH: https://api.thegraph.com/subgraphs/name/beethovenxfi/masterchefv2
BLOCKS_SUBGRAPH: https://api.thegraph.com/subgraphs/name/danielmkm/optimism-blocks
BEETS_BAR_SUBGRAPH: https://api.thegraph.com/subgraphs/name/beethovenxfi/beets-bar
USER_SNAPSHOT_SUBGRAPH: https://api.thegraph.com/subgraphs/name/danielmkm/user-balances-fantom
GAUGE_SUBGRAPH: https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-optimism
VEBALLOCKS_SUBGRAPH: https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges
RELIQUARY_SUBGRAPH: https://api.thegraph.com/subgraphs/name/beethovenxfi/reliquary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -16,5 +25,7 @@ jobs:
run: yarn
- name: Generate Schema
run: yarn generate
- name: Prisma Generate
run: yarn prisma generate
- name: Run build
run: yarn build
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
YEARN_VAULTS_ENDPOINT: 'https://d28fcsszptni1s.cloudfront.net/v1/chains/250/vaults/all'
SUBGRAPH_ORIG: 'https://api.thegraph.com/subgraphs/name/beethovenxfi/beets-bar'
GAUGE_SUBGRAPH: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-optimism'
USER_SNAPSHOT_SUBGRPAH: 'https://api.thegraph.com/subgraphs/name/beethovenxfi/user-bpt-balances-fantom'
USER_SNAPSHOT_SUBGRAPH: 'https://api.thegraph.com/subgraphs/name/beethovenxfi/user-bpt-balances-fantom'
VEBALLOCKS_SUBGRAPH: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges'
phases:
install:
Expand Down
4 changes: 2 additions & 2 deletions codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ generates:
plugins:
- schema-ast
modules/subgraphs/user-snapshot-subgraph/generated/user-snapshot-subgraph-types.ts:
schema: ${USER_SNAPSHOT_SUBGRPAH}
schema: ${USER_SNAPSHOT_SUBGRAPH}
documents: 'modules/subgraphs/user-snapshot-subgraph/user-snapshot-subgraph-queries.graphql'
plugins:
- typescript
Expand All @@ -134,7 +134,7 @@ generates:
Bytes: string
BigDecimal: string
modules/subgraphs/user-snapshot-subgraph/generated/user-snapshot-schema.graphql:
schema: ${USER_SNAPSHOT_SUBGRPAH}
schema: ${USER_SNAPSHOT_SUBGRAPH}
plugins:
- schema-ast
graphql_schema_generated_balancer.ts:
Expand Down
2 changes: 1 addition & 1 deletion env.local
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BALANCER_SUBGRAPH=https://api.thegraph.com/subgraphs/name/beethovenxfi/beethoven
MASTERCHEF_SUBGRAPH=https://api.thegraph.com/subgraphs/name/beethovenxfi/masterchefv2
BLOCKS_SUBGRAPH=https://api.thegraph.com/subgraphs/name/danielmkm/optimism-blocks
BEETS_BAR_SUBGRAPH=https://api.thegraph.com/subgraphs/name/beethovenxfi/beets-bar
USER_SNAPSHOT_SUBGRPAH=https://api.thegraph.com/subgraphs/name/danielmkm/user-balances-fantom
USER_SNAPSHOT_SUBGRAPH=https://api.thegraph.com/subgraphs/name/danielmkm/user-balances-fantom
GAUGE_SUBGRAPH=https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-optimism
VEBALLOCKS_SUBGRAPH=https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges
RELIQUARY_SUBGRAPH=https://api.thegraph.com/subgraphs/name/beethovenxfi/reliquary
Expand Down

0 comments on commit 2a7a8e1

Please sign in to comment.