Skip to content

Commit

Permalink
Add Github Actions support
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Nov 24, 2020
1 parent 317b93e commit 2adabe4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: g++ --version
- run: cmake --version

# before install
- run: sudo apt-get update -qq
- run: sudo apt-get install -y libzmq3-dev libzmq5
- run: sudo apt-get install -y libboost-all-dev
- run: sudo apt-get install -y libyaml-cpp0.6 libyaml-cpp-dev
- run: sudo apt-get install -y libcurl4-gnutls-dev

# script
- run: mkdir build
- run: cmake ..
working-directory: build
- run: make
working-directory: build
- run: ctest --output-on-failure
working-directory: build

# after success
- uses: codecov/codecov-action@v1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Broker
[![Build Status](https://travis-ci.org/ReCodEx/broker.svg?branch=master)](https://travis-ci.org/ReCodEx/broker)
[![Coverage](https://img.shields.io/coveralls/ReCodEx/broker.svg)](https://coveralls.io/github/ReCodEx/broker)
[![Build Status](https://github.com/ReCodEx/broker/workflows/CI/badge.svg)](https://github.com/ReCodEx/broker/actions)
[![codecov](https://codecov.io/gh/ReCodEx/broker/branch/master/graph/badge.svg?token=PWV4OZ75DI)](https://codecov.io/gh/ReCodEx/broker)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://badges.mit-license.org)
[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://recodex.github.io/broker/)
[![Wiki](https://img.shields.io/badge/docs-wiki-orange.svg)](https://github.com/ReCodEx/wiki/wiki)
Expand Down

0 comments on commit 2adabe4

Please sign in to comment.