kick out Travis, switch to GitHub Actions
This commit is contained in:
parent
8dd9d79f35
commit
b22cd82501
|
@ -0,0 +1,36 @@
|
|||
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
|
14
.travis.yml
14
.travis.yml
|
@ -1,14 +0,0 @@
|
|||
language: node_js
|
||||
node_js: node
|
||||
|
||||
script:
|
||||
# will run `npm ci` automatically here
|
||||
# - npm test
|
||||
- npm run lint
|
||||
- npm run codegen
|
||||
# TODO: activate once this issue is solved:
|
||||
# https://github.com/graphprotocol/graph-ts/issues/113
|
||||
# - npm run type-check
|
||||
|
||||
notifications:
|
||||
email: false
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
> 🦀 Ocean Protocol Subgraph
|
||||
|
||||
[![Build Status](https://travis-ci.com/oceanprotocol/ocean-subgraph.svg?branch=main)](https://travis-ci.com/oceanprotocol/ocean-subgraph)
|
||||
[![Build Status](https://github.com/oceanprotocol/ocean-subgraph/workflows/CI/badge.svg)](https://github.com/oceanprotocol/ocean-subgraph/actions)
|
||||
[![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol)
|
||||
|
||||
- [🏄 Get Started](#-get-started)
|
||||
|
|
Loading…
Reference in New Issue