Skip to content

Commit

Permalink
ci: Use GitHub Actions instead of CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Sep 16, 2020
1 parent 9c2662a commit 25b9db9
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 66 deletions.
62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: ci-tests

# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- master
# Or when a pull request event occurs for a pull request against one of the
# matched branches.
pull_request:
branches:
- master

jobs:
tests:
# NOTE: This name appears in GitHub's Checks API.
name: tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# Check out pull request's HEAD commit instead of the merge commit to
# work-around an issue where wrong a commit is being checked out.
# For more details, see:
# https://github.com/actions/checkout/issues/299.
ref: ${{ github.event.pull_request.head.sha }}

- name: Install needed system packages
run: |
sudo apt-get update -y
sudo apt-get install -y libusb-1.0.0 libudev-dev
- name: Set up Node.js 12
uses: actions/setup-node@v1
with:
node-version: '12'

- name: Build code
run: |
yarn install
yarn build
- name: Run tests
run: |
yarn test:unit
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# ledger-oasis-js
# ledger-js

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![npm version](https://badge.fury.io/js/ledger-oasis-js.svg)](https://badge.fury.io/js/ledger-oasis-js)
[![CircleCI](https://circleci.com/gh/ZondaX/ledger-oasis-js/tree/master.svg?style=shield)](https://circleci.com/gh/ZondaX/ledger-oasis-js/tree/master)
[![CI test status][github-ci-tests-badge]][github-ci-tests-link]

This package provides a basic client library to communicate with the Oasis App running in a Ledger Nano S/X
<!-- markdownlint-disable line-length -->
[github-ci-tests-badge]: https://github.com/oasisprotocol/ledger-js/workflows/ci-tests/badge.svg
[github-ci-tests-link]: https://github.com/oasisprotocol/ledger-js/actions?query=workflow:ci-tests+branch:master
<!-- markdownlint-enable line-length -->

This package provides a basic client library to communicate with the Oasis apps running in a Ledger Nano S/X.

We recommend using the npmjs package in order to receive updates/fixes.

Expand Down

0 comments on commit 25b9db9

Please sign in to comment.