Skip to content

Commit

Permalink
solution: setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
splix authored Jul 15, 2020
1 parent 5f5dfc4 commit 95eb72f
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/actions-rs/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
llvm: true
output-type: lcov
ignore:
- "target/*"
- "/usr/share/rust/.cargo/*"
- "/.cargo/*"
83 changes: 83 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Test

on:
# if pushed directly to the master
push:
branches:
- master
# on a pull request
pull_request:
branches:
- master

jobs:
tests:
name: Test ${{ matrix.os }}
strategy:
matrix:
os: ["windows-latest", "macos-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --release
env:
RUST_BACKTRACE: "1"

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --release
env:
RUST_BACKTRACE: "1"

coverage:
name: Coverage Report
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --no-fail-fast --all-features
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: Coverage Report
id: coverage
uses: actions-rs/[email protected]

- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}

- name: Upload to Codecov
uses: codecov/codecov-action@v1
with:
file: ${{ steps.coverage.outputs.report }}
9 changes: 8 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
= HD Path for Rust
:lib-version: 0.2.0-alpha
:lib-version: 0.1.1

image:https://github.com/emeraldpay/hdpath-rs/workflows/Test/badge.svg["Test"]
image:https://coveralls.io/repos/github/emeraldpay/hdpath-rs/badge.svg["Coveralls"]
image:https://codecov.io/gh/emeraldpay/hdpath-rs/branch/master/graph/badge.svg[Codecov,link=https://codecov.io/gh/emeraldpay/hdpath-rs]
image:https://img.shields.io/crates/v/hdpath.svg?style=flat-square["Crates",link="https://crates.io/crates/hdpath"]
image:https://img.shields.io/badge/License-Apache%202.0-blue.svg["License"]


Rust crate that implements common structures and utilities to operate HD Path defined by Bitcoin's BIP-32 standard.

Expand Down

0 comments on commit 95eb72f

Please sign in to comment.