Skip to content

Commit

Permalink
Add users subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAurelius committed Apr 6, 2022
1 parent 88b0cfa commit 0bddfec
Show file tree
Hide file tree
Showing 70 changed files with 58,794 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
compile:
needs: [ setup ]
runs-on: ubuntu-latest
name: Compile
strategy:
matrix:
value: ["bonds", "protocol-metrics", "users"]
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install dependencies
run: npm install
working-directory: "${{ matrix.value }}"

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: npm run codegen
working-directory: "${{ matrix.value }}"
- name: Check for uncommitted changes
id: check-changes
uses: mskri/[email protected]
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'npm run codegen' locally and commit the generated files!"

- name: Build Subgraph
run: npm run build
working-directory: "${{ matrix.value }}"
# TODO: add matchstick test suite
# - name: Run Tests
# run: npm run test
# working-directory: "${{ matrix.value }}"
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ bower_components
build/Release

# Dependency directories
node_modules/
bonds/node_modules/
protocol-metrics/node_modules/
*/node_modules/
jspm_packages/

# TypeScript v1 declaration files
Expand Down Expand Up @@ -63,6 +61,8 @@ typings/
.next

# thegraph build
data
build
bonds/build
protocol-metrics/build
users/build
Loading

0 comments on commit 0bddfec

Please sign in to comment.