From 82289d5e74d80b4633484fb9786330e587a91932 Mon Sep 17 00:00:00 2001 From: Hiroki Kobayashi <3303362+koba-e964@users.noreply.github.com> Date: Tue, 1 Feb 2022 13:51:49 +0900 Subject: [PATCH] Migrate to GitHub Actions --- .github/workflows/erlang.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/erlang.yml diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml new file mode 100644 index 0000000..952ce43 --- /dev/null +++ b/.github/workflows/erlang.yml @@ -0,0 +1,36 @@ +name: Erlang CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + strategy: + matrix: + erlang-version: + - 21.0 + - 20.3 + - 19.3 + - 18.3 + + container: + image: erlang:${{ matrix.erlang-version }} + + steps: + - uses: actions/checkout@v2 + - name: Compile + run: ./rebar3 compile + - name: Run tests + run: ./rebar3 do eunit, ct + - name: Run xref + run: ./rebar3 xref + - name: Run dialyzer + run: ./rebar3 dialyzer + - name: Run edoc + run: ./rebar3 as dev edoc