StreamEscrow #702
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: Subgraph CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- 'packages/nouns-contracts/abi/contracts/**' | |
- 'packages/nouns-subgraph/**' | |
- '.github/workflows/subgraph-test.yaml' | |
branches: | |
- '**' | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install Yarn | |
run: npm install -g yarn | |
- run: yarn | |
- run: yarn build | |
- name: Prepare subgraph yaml | |
run: | | |
cd packages/nouns-subgraph | |
yarn prepare:sepolia | |
- name: Generate code | |
run: | | |
cd packages/nouns-subgraph | |
yarn codegen | |
- name: Generate config | |
run: | | |
cd packages/nouns-subgraph | |
yarn test:configgen | |
- name: Run tests | |
run: | | |
cd packages/nouns-subgraph | |
yarn test | |
- name: Uninstall Yarn | |
if: always() | |
run: npm uninstall -g yarn |