Cam

Cam

Error when trying to run CI with Github Actions

I have a playground Phoenix app that I’m using to test out Github Actions with Elixir/Phoenix. It seems to be having an issue running my test suite and I’m not entirely sure what is going on.

** (Mix) "make" not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

##[error]Process completed with exit code 1.

That happens before my test suite even begins to run.

Here is my elixir.yml file.

name: Elixir CI

on: push

jobs:
  build:

    runs-on: ubuntu-latest

    container:
      image: elixir:1.9.1-slim

    steps:
    - uses: actions/checkout@v1
    - name: Install Dependencies
      run: |
        mix local.rebar --force
        mix local.hex --force
        mix deps.get
    - name: Run Tests
      run: mix test

Any help on this would be fantastic. Thanks!

#ci

Marked As Solved

idi527

idi527

:waving_hand:

Maybe the elixir:1.9.1-slim image doesn’t have the build tools installed?


docker run --rm -it elixir:1.9.1-slim /bin/bash

Unable to find image 'elixir:1.9.1-slim' locally
1.9.1-slim: Pulling from library/elixir
092586df9206: Already exists
1ea657b85b1b: Pull complete
88e54a5e27b9: Pull complete
Digest: sha256:2db029a79b6cc18dc598d37257fabe2cc6219d105acf6f4a68ec9cfc8120d102
Status: Downloaded newer image for elixir:1.9.1-slim

root@b851f47dd24d:/# make
bash: make: command not found
root@b851f47dd24d:/# 

elixir:1.9.1 has it though:

docker run --rm -it elixir:1.9.1 /bin/bash
root@1193ae2771b8:/# make
make: *** No targets specified and no makefile found.  Stop.
root@1193ae2771b8:/#

So maybe you could try something like

name: Elixir CI

on: push

jobs:
  build:

    runs-on: ubuntu-latest

    container:
-     image: elixir:1.9.1-slim
+     image: elixir:1.9.1

    steps:
    - uses: actions/checkout@v1
    - name: Install Dependencies
      run: |
        mix local.rebar --force
        mix local.hex --force
        mix deps.get
    - name: Run Tests
      run: mix test

Also Liked

maartenvanvliet

maartenvanvliet

I added github actions for the elixir-companies.com site yesterday, if you want to have a peek:

https://github.com/beam-community/elixir-companies/blob/master/.github/workflows/elixir.yml

Where Next?

Popular in Questions Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

We're in Beta

About us Mission Statement