From 3812d40271f70c4aa1c95bb8617a7bc3e39300f8 Mon Sep 17 00:00:00 2001 From: Marc Worrell Date: Mon, 28 Dec 2020 12:43:11 +0100 Subject: [PATCH] Move to GH Actions. --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 29 ----------------------------- README.md | 4 +++- 3 files changed, 39 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..af8fe42 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +# Run tests and dialyzer + +name: Test + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +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 + - name: XRef + run: make xref + - name: Dialyzer + run: make dialyzer diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ec82886..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: erlang -otp_release: - - 20.0 - - 19.3 -#jobs: -# include: -# - stage: deploy -# otp_release: 19.3 -# script: skip -# deploy: -# provider: script -# script: "bash -c 'source <(curl -s https://raw.githubusercontent.com/zotonic/hexpub/master/hexpub.sh)'" -# skip_cleanup: true -# on: -# tags: true -# all_branches: true -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 aca69ca..89752c9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# dispatch_compiler [![Build Status](https://secure.travis-ci.org/zotonic/dispatch_compiler.png?branch=master)](http://travis-ci.org/zotonic/dispatch_compiler) +![Test](https://github.com/zotonic/dispatch_compiler/workflows/Test/badge.svg) + +# dispatch_compiler Compiles dispatch rules to an Erlang module for quick matching.