mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
61466749e0
* bump * ci possible fix * ci fix * ci fx * fix tests * test * more test * more test * test * t * remove console * test * test * add env * wait contracts * test * t * t * add sleep * bump lib again * bump eslint * Update Datatokens.test.ts * log result * test url * fix url * Update Datatokens.test.ts * Update tests.yml * url test * Update tests.yml * Update tests.yml * Update tests.yml * fix * fix * remove unused script * remove console logs * shorter wait time * remove logs from test Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
38 lines
862 B
YAML
38 lines
862 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@v2
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-lint-${{ env.cache-name }}-
|
|
- 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
|