Skip to content

Commit

Permalink
remove BK; Use GHA (#37)
Browse files Browse the repository at this point in the history
* remove BK; Use GHA
  • Loading branch information
jadeallenx committed Apr 23, 2021
1 parent 0260f48 commit 31e73a6
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .buildkite/env/secrets.ejson

This file was deleted.

12 changes: 0 additions & 12 deletions .buildkite/hooks/pre-command

This file was deleted.

6 changes: 0 additions & 6 deletions .buildkite/pipeline.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
CI:
runs-on: ubuntu-18.04
container: heliumsystems/builder-erlang:2

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cancel previous runs
if: ${{ !env.ACT }}
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}

- name: Cache Hex Packages
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }}
restore-keys: |
${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/rebar3_*_plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
- name: Build
run: rebar3 compile

- name: Run tests
run: rebar3 as test do eunit,ct,cover

- name: Run Dialyzer
run: rebar3 do dialyzer #, xref

- name: Generate coverage report
run: rebar3 covertool generate

- name: Upload coverage report
if: ${{ !env.ACT }}
uses: codecov/codecov-action@v1
with:
file: _build/test/covertool/erlang_dkg.covertool.xml
fail_ci_if_error: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
erlang-dkg
=====
[![Build Status](https://badge.buildkite.com/6933d2231530c47800b727a796af13ac90faabcffbe12af487.svg?branch=master)](https://buildkite.com/helium/erlang-dkg)

[![CI](https://github.com/helium/erlang-dkg/actions/workflows/ci.yml/badge.svg)](https://github.com/helium/erlang-dkg/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/helium/erlang-dkg/branch/master/graph/badge.svg)](https://codecov.io/gh/helium/erlang-dkg)

An implementation of the protocol described in "Distributed Key
Expand Down

0 comments on commit 31e73a6

Please sign in to comment.