TokenBuyerV2 #52
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: [workflow_dispatch, pull_request, push] | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: | | |
cd token-buyer-subgraph | |
yarn | |
- name: Generate code | |
run: | | |
cd token-buyer-subgraph | |
yarn codegen | |
- name: Build | |
run: | | |
cd token-buyer-subgraph | |
yarn build | |
- name: Run tests | |
run: | | |
cd token-buyer-subgraph | |
yarn test | |
- name: Uninstall Yarn | |
if: always() | |
run: npm uninstall -g yarn |