Error on GitHub CI

Hello guys, I am currently adding a GitHub CI workflow to my Elixir app. However I’m getting the following error due to a missing file:

2020-01-06T21:46:02.0861653Z ##[group]Run mix local.rebar --force
2020-01-06T21:46:02.0862148Z e[36;1mmix local.rebar --forcee[0m
2020-01-06T21:46:02.0862262Z e[36;1mmix local.hex --forcee[0m
2020-01-06T21:46:02.0862345Z e[36;1mmix deps.gete[0m
2020-01-06T21:46:02.0862969Z shell: sh -e {0}
2020-01-06T21:46:02.0863088Z ##[endgroup]
2020-01-06T21:46:03.1539528Z ** (Code.LoadError) could not load /__w/collabra-reports-api/collabra-reports-api/apps/api/config/dev.exs
2020-01-06T21:46:03.1539786Z     (elixir) lib/code.ex:1193: Code.find_file/2
2020-01-06T21:46:03.1539907Z     (elixir) lib/code.ex:758: Code.eval_file/2
2020-01-06T21:46:03.1540004Z     (mix) lib/mix/config.ex:158: anonymous fn/2 in Mix.Config.__import__!/2
2020-01-06T21:46:03.1540384Z     (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
2020-01-06T21:46:03.1540514Z     (mix) lib/mix/config.ex:157: Mix.Config.__import__!/2
2020-01-06T21:46:03.1540633Z     (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
2020-01-06T21:46:03.1540729Z     (elixir) lib/code.ex:240: Code.eval_string/3
2020-01-06T21:46:03.3646031Z ##[error]Process completed with exit code 1.

However, dev.exs is a file I can’t upload, there is sensitive data in there, such as credentials. Do you guys know what can I do on this situation?

Use another MIX_ENV which comes with an appropriate config for GitHub Actions.

1 Like

Exactly, something like:

MIX_ENV: test

was missing on my .yml file. Thanks @NobbZ!