@@ -0,0 +1,33 @@
+---
+name: build
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+jobs:
+ ci:
+ name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
+ runs-on: ${{matrix.os}}
+ strategy:
+ matrix:
+ otp_vsn: [19.3, 20.0, 21.0, 22.0, 23.0, 24.0]
+ os: [ubuntu-latest]
+ steps:
+ - uses: actions/checkout@v2
+ - run: rebar3 compile
+ - run: rebar3 xref
+ - run: rebar3 eunit
+ - run: rebar3 dialyzer
+ - run: rebar3 edoc
+ - run: rebar3 cover
+ - run: rebar3 as test covertool generate
+ - run: cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml
+ cov:
+ needs: ci
+ runs-on: ubuntu-latest
+ - run: sudo pip install codecov
+ - run: codecov
@@ -1,23 +0,0 @@
-language: erlang
-
-os: linux
-otp_release:
- - 22.0
- - 21.0
- - 20.0
- - 19.3
-install:
- - sudo pip install codecov
-script:
- - rebar3 compile
- - rebar3 xref
- - rebar3 eunit
- - rebar3 dialyzer
- - rebar3 edoc
- - rebar3 cover
- - rebar3 as test covertool generate
- - cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml
-after_success:
- - codecov
@@ -2,7 +2,7 @@ jsone
=====
[](https://hex.pm/packages/jsone)
-[](https://travis-ci.org/sile/jsone)
+[](https://github.com/sile/jsone)
[](https://codecov.io/gh/sile/jsone/branch/master)
[](LICENSE)