Skip to content

Commit

Permalink
Merge pull request #10 from maticnetwork/jdkanani/ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
jdkanani authored Dec 23, 2020
2 parents b13d3d1 + 0195ae2 commit 4b4d4ef
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
directory: [root, child]

defaults:
run:
working-directory: ${{ matrix.directory }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12"
check-latest: true
- run: npm install
- run: npm run lint
4 changes: 3 additions & 1 deletion child/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "1.0.0",
"description": "Subgraphs mapping for Graph-node protocol - Matic Network",
"scripts": {
"graph": "graph",
"lint": "eslint --ext .ts src",
"lint:fix": "eslint --ext .ts src --fix",
"graph": "graph",
"codegen": "graph codegen",
"build": "graph build",
"create": "graph create --node https://mumbai-graph.matic.today/ nglglhtr/token-subgraph",
"deploy": "graph deploy --node https://mumbai-graph.matic.today/ --ipfs https://ipfs.infura.io:5001/ nglglhtr/token-subgraph",
"prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
Expand Down

0 comments on commit 4b4d4ef

Please sign in to comment.