mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
37 lines
765 B
YAML
37 lines
765 B
YAML
|
name: 'CI'
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- '**'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- '**'
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Setup Node.js
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: '14'
|
||
|
|
||
|
- name: Cache node modules
|
||
|
uses: actions/cache@v1
|
||
|
with:
|
||
|
path: ~/.npm
|
||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||
|
restore-keys: ${{ runner.os }}-node-
|
||
|
|
||
|
- run: npm ci
|
||
|
- run: npm run lint
|
||
|
# TODO: activate once this issue is solved:
|
||
|
# https://github.com/graphprotocol/graph-ts/issues/113
|
||
|
# - run: npm run type-check
|
||
|
- run: npm run codegen
|
||
|
- run: npm run build
|