I'm experimenting with Elixir as a CI script language in GitHub actions. Wondering if there is a straight-forward way to import dependencies when not using mix:
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- id: main
run: |
defmodule DoStuff do
import JSON # Doesn't work
end
shell: elixir -r {0}
Including a mix project in the repository seems a little overkill for simple scripts. Is there an easy way to do get modules when running standalone scripts through elixir -r?