Skip to content

Commit

Permalink
feat: configure coverage report tool
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Apr 7, 2020
1 parent c1af209 commit f83cad1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -33,6 +33,14 @@ jobs:
- name: test
run: yarn test

sonarcloud:
name: SonarCloud Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master

release:
name: Building and releasing project
runs-on: ubuntu-latest
Expand Down
12 changes: 10 additions & 2 deletions README.md
@@ -1,5 +1,6 @@
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/standard/semistandard)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=PolymathNetwork_polymesh-sdk&metric=coverage)](https://sonarcloud.io/dashboard?id=PolymathNetwork_polymesh-sdk)

# Polymesh SDK

Expand Down Expand Up @@ -31,7 +32,7 @@ Things included in the repo:

## Usage

Connect to Polymesh
Connect to a Polymesh node with an account via an suri

```ts
import { Polymesh } from './src/Polymesh';
Expand All @@ -42,10 +43,17 @@ const api = await Polymesh.connect({
});
```

Gets your balance account
Get your account balance

```ts
const balance = await api.getAccountBalance();
```

Reserve a Ticker

```ts
const ticker = await api.reserveTicker({ ticker: 'MY_TICKER_SYMBOL' });
await ticker.run();
```

**To be continued...**
3 changes: 3 additions & 0 deletions sonar-project.properties
@@ -0,0 +1,3 @@
sonar.organization=polymathnetwork-1
sonar.projectKey=PolymathNetwork_polymesh-sdk
sonar.sources=.

0 comments on commit f83cad1

Please sign in to comment.