From 1bf84df26782f7022cd068875bf7b3da7d04693d Mon Sep 17 00:00:00 2001 From: Marc Worrell Date: Mon, 28 Dec 2020 11:04:56 +0100 Subject: [PATCH] Add xref and dialyzer to GH action Test. (#24) Add xref and dialyzer to GH action Test. Rename GH Action CI to Hex Publish Add GH Action batch to readme. Remove travis config. * Fix xref test step. --- .github/workflows/{ci.yml => hex-publish.yml} | 2 +- .github/workflows/test.yml | 12 ++++++++---- .travis.yml | 18 ------------------ README.md | 2 +- 4 files changed, 10 insertions(+), 24 deletions(-) rename .github/workflows/{ci.yml => hex-publish.yml} (94%) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/hex-publish.yml similarity index 94% rename from .github/workflows/ci.yml rename to .github/workflows/hex-publish.yml index 677286a..4592c83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/hex-publish.yml @@ -1,4 +1,4 @@ -name: CI +name: Hex Publish on: push: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29edc03..2d09154 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,18 +15,22 @@ jobs: linux: name: Test on OTP ${{ matrix.otp_version }} runs-on: ${{ matrix.os }} - + strategy: matrix: otp_version: [21,22,23] os: [ubuntu-latest] - + container: image: erlang:${{ matrix.otp_version }} - + steps: - uses: actions/checkout@v2 - name: Compile run: make - name: Test - run: make test + run: make test + - name: XRef + run: make xref + - name: Dialyzer + run: make dialyzer diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4e3078c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: erlang -otp_release: - - 23.0 - - 22.3 - - 21.3 -install: - - wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 -script: - - make test - - make xref - - make dialyzer -sudo: false -notifications: - email: - recipients: - - zotonic-commits@googlegroups.com - on_success: change #[always|never|change] # default: change - on_failure: always #[always|never|change] # default: always diff --git a/README.md b/README.md index 92bcf13..4cfe3b0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/zotonic/cowmachine.svg?branch=master)](https://travis-ci.org/zotonic/cowmachine) +![Test](https://github.com/zotonic/cowmachine/workflows/Test/badge.svg) # Cowmachine