From d7f27b151fb4937968e71bc7d9b516edff39611f Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Tue, 8 Dec 2020 16:40:46 +0000 Subject: [PATCH 1/3] Implement GitHub Actions --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ee176e7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +--- +name: CI for apns4erl +on: + push: + branches: + - master + pull_request: + branches: + - master +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.3, 21.3, 22.3, 23.0] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v2 + - run: rebar3 as test xref + - run: rebar3 as test dialyzer + - run: rebar3 as test ct From a027c3072896bed24d1450d80d59f7e7d0cd9d31 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Tue, 8 Dec 2020 18:22:27 +0000 Subject: [PATCH 2/3] Have README reflect the fact we're using GHA, not Travis CI --- .github/workflows/ci.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee176e7..bb9923a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ --- -name: CI for apns4erl +name: build on: push: branches: diff --git a/README.md b/README.md index 28afca3..a23c7cd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -Apns4erl v2 [![Build Status](https://travis-ci.org/inaka/apns4erl.svg?branch=master)](https://travis-ci.org/inaka/apns4erl)[![codecov](https://codecov.io/gh/inaka/apns4erl/branch/master/graph/badge.svg)](https://codecov.io/gh/inaka/apns4erl) +Apns4erl v2 [![Build Status](https://github.com/inaka/apns4erl/workflows/build/badge.svg)](https://github.com/inaka/apns4erl)[![codecov](https://codecov.io/gh/inaka/apns4erl/branch/master/graph/badge.svg)](https://codecov.io/gh/inaka/apns4erl) ======== From ec9a48356eaff9d12a89429af5538f578a3482ac Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Thu, 10 Dec 2020 00:31:36 +0000 Subject: [PATCH 3/3] Actually run on different Erlang versions --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb9923a..ea05d89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ jobs: ci: name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}} runs-on: ${{matrix.os}} + container: + image: erlang:${{matrix.otp_vsn}} strategy: matrix: otp_vsn: [19.3, 20.3, 21.3, 22.3, 23.0]