feat: update to support main new and edited events #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build::subgraph' | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build: | |
strategy: | |
max-parallel: 4 | |
matrix: | |
manifest: [subgraph.testnet_fast.yaml, subgraph.testnet.yaml,subgraph.devnet_fast.yaml, subgraph.devnet.yaml, subgraph.goerli_fast.yaml, subgraph.goerli.yaml, subgraph.mainnet_fast.yaml, subgraph.mainnet.yaml] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: 'asdf:install' | |
uses: asdf-vm/actions/[email protected] | |
- name: 'yarn:init' | |
run: yarn | |
- name: "graph:codegen for ${{matrix.manifest}}" | |
run: $(yarn bin)/graph codegen ${{matrix.manifest}} | |
- name: "graph:build for ${{matrix.manifest}}" | |
run: $(yarn bin)/graph build ${{matrix.manifest}} | |