dApp: Update copies #1713
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "subgraph/**" | |
pull_request: | |
defaults: | |
run: | |
working-directory: ./subgraph | |
jobs: | |
subgraph-codegen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "subgraph/.nvmrc" | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm install --prefer-offline --frozen-lockfile | |
- name: Codegen | |
run: pnpm run codegen:sepolia | |
- name: Upload Codegen Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: subgraph-codegen | |
path: | | |
subgraph/generated | |
if-no-files-found: error | |
subgraph-format: | |
needs: [subgraph-codegen] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "subgraph/.nvmrc" | |
cache: "pnpm" | |
- name: Download Codegen Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: subgraph-codegen | |
path: subgraph/generated | |
- name: Install Dependencies | |
run: pnpm install --prefer-offline --frozen-lockfile | |
- name: Format | |
run: pnpm run format | |
subgraph-build: | |
needs: [subgraph-codegen] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "subgraph/.nvmrc" | |
cache: "pnpm" | |
- name: Download Codegen Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: subgraph-codegen | |
path: subgraph/generated | |
- name: Install Dependencies | |
run: pnpm install --prefer-offline --frozen-lockfile | |
- name: Build | |
run: pnpm run build:sepolia | |
subgraph-test: | |
needs: [subgraph-codegen] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "subgraph/.nvmrc" | |
cache: "pnpm" | |
- name: Download Codegen Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: subgraph-codegen | |
path: subgraph/generated | |
- name: Install Dependencies | |
run: pnpm install --prefer-offline --frozen-lockfile | |
- name: Tests | |
run: pnpm run test |