Fix the test gh action. Don't download rebar3, but use the one provided by the erlang image

This commit is contained in:
Maas-Maarten Zeeman
2020-10-29 08:07:19 +01:00
parent f7d59738aa
commit c64f9d1ed4
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
otp_version: [20,22,23]
otp_version: [20,21,22,23]
os: [ubuntu-latest]
container:

View File

@@ -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: