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