chg: use github actions as CI
ADD
.github/workflows/ci.yml
+name: CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ node-version: [10.x, 12.x, 14.x]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: Install dependencies
+ run: npm install
+ - name: Check lint
+ run: npm run lint
+ - name: Build
+ run: npm run build

DELETE
.travis.yml
-dist: trusty
-sudo: required
-group: beta
-language: node_js
-node_js:
- - "8"
-cache:
- directories:
- - node_modules
-matrix:
- fast_finish: true
-script:
- - npm run lint
\ No newline at end of file

MODIFY
README.md
README.md
# Matic SDK
-[![Build Status](https://travis-ci.org/maticnetwork/matic.js.svg?branch=master)](https://travis-ci.org/maticnetwork/matic.js)
+![Build Status](https://github.com/maticnetwork/matic.js/workflows/CI/badge.svg?branch=master)
This repository contains the `maticjs` client library. `maticjs` makes it easy for developers, who may not be deeply familiar with smart contract development, to interact with the various components of Matic Network.

chg: use github actions as CI