Fix the test gh action. Don't download rebar3, but use the one provided by the erlang image
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
otp_version: [20,22,23]
|
otp_version: [20,21,22,23]
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|
||||||
container:
|
container:
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -8,19 +8,19 @@ REBAR3_URL := https://github.com/erlang/rebar3/releases/download/$(REBAR3_VERSIO
|
|||||||
|
|
||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
./rebar3:
|
$(REBAR3):
|
||||||
$(ERL) -noshell -s inets -s ssl \
|
$(ERL) -noshell -s inets -s ssl \
|
||||||
-eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR3_URL)", []}, [], [{stream, "./rebar3"}])' \
|
-eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR3_URL)", []}, [], [{stream, "./rebar3"}])' \
|
||||||
-s init stop
|
-s init stop
|
||||||
chmod +x ./rebar3
|
chmod +x ./rebar3
|
||||||
|
|
||||||
compile: rebar3
|
compile: $(REBAR3)
|
||||||
$(REBAR3) compile
|
$(REBAR3) compile
|
||||||
|
|
||||||
test: compile
|
test: compile
|
||||||
$(REBAR3) eunit
|
$(REBAR3) eunit
|
||||||
|
|
||||||
clean: rebar3
|
clean: $(REBAR3)
|
||||||
$(REBAR3) clean
|
$(REBAR3) clean
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
|
|||||||
Reference in New Issue
Block a user