Skip to content

Berachain

Berachain #485

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
pull_request:
types: [opened, synchronize, reopened]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
strategy:
matrix:
# We want to test the shared code too
subgraph: [ethereum, arbitrum, polygon, fantom, shared, base, berachain]
# The type of runner that the job will run on
# Pin the runner to ubuntu-22.04 to avoid an incompatibility with ubuntu 24 and graph test
# https://github.com/graphprotocol/graph-tooling/issues/1546
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Install dependencies
- name: Install
run: |
yarn install --frozen-lockfile
# Run build
- name: Build
run: yarn subgraph build ${{ matrix.subgraph }}
# Run tests
- name: Unit Tests
run: yarn subgraph test ${{ matrix.subgraph }}