Skip to content

Commit

Permalink
move CI to github actions (#83)
Browse files Browse the repository at this point in the history
* move CI to github actions

* use covertool and codecov github action
  • Loading branch information
tsloughter authored Jul 1, 2020
1 parent fcb05dc commit 725b7f1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Common Test

on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

jobs:
build:
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
otp_version: ['23.0.2', '22.3.4.2', '21.3.8.16']
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: gleam-lang/setup-erlang@v1.0.0
with:
otp-version: ${{ matrix.otp_version }}

- name: Compile
run: rebar3 compile
- name: EUnit tests
run: rebar3 eunit
- name: Dialyzer
run: rebar3 dialyzer
- name: XRef
run: rebar3 xref
- name: Covertool
run: rebar3 covertool generate
- uses: codecov/codecov-action@v1
with:
file: _build/test/covertool/opentelemetry.covertool.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OpenTelemetry

[![EEF Observability WG project](https://img.shields.io/badge/EEF-Observability-black)](https://github.com/erlef/eef-observability-wg)
[![Hex.pm](https://img.shields.io/hexpm/v/opentelemetry)](https://hex.pm/packages/opentelemetry)
![CircleCI](https://img.shields.io/circleci/build/github/open-telemetry/opentelemetry-erlang)
![Build Status](https://github.com/open-telemetry/opentelemetry-erlang/workflows/Common%20Test/badge.svg)

OpenTelemetry stats collection and distributed tracing framework for Erlang.

Expand Down

0 comments on commit 725b7f1

Please sign in to comment.