From c64f9d1ed4a23b11ff521afef4931cf5a1177f98 Mon Sep 17 00:00:00 2001 From: Maas-Maarten Zeeman Date: Thu, 29 Oct 2020 08:07:19 +0100 Subject: [PATCH] Fix the test gh action. Don't download rebar3, but use the one provided by the erlang image --- .github/workflows/test.yml | 2 +- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5992657..2003e0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - otp_version: [20,22,23] + otp_version: [20,21,22,23] os: [ubuntu-latest] container: diff --git a/Makefile b/Makefile index 981e179..2298258 100644 --- a/Makefile +++ b/Makefile @@ -8,19 +8,19 @@ REBAR3_URL := https://github.com/erlang/rebar3/releases/download/$(REBAR3_VERSIO all: compile -./rebar3: +$(REBAR3): $(ERL) -noshell -s inets -s ssl \ -eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR3_URL)", []}, [], [{stream, "./rebar3"}])' \ -s init stop chmod +x ./rebar3 -compile: rebar3 +compile: $(REBAR3) $(REBAR3) compile test: compile $(REBAR3) eunit -clean: rebar3 +clean: $(REBAR3) $(REBAR3) clean distclean: