mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-11-01 07:45:19 +01:00
4df522b426
* bump ocean.js to next 18
33 lines
661 B
YAML
33 lines
661 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
|