I’m having an issue setting up Github actions. I’ve found this helpful link for standard elixir workflow .yml files: https://github.com/actions/setup-elixir
Here is my current
name: Elixir CI on: push jobs: test: runs-on: ubuntu-latest services: db: image: postgres:11 ports: ['5432:5432'] options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: firstname.lastname@example.org - uses: email@example.com with: otp-version: 22.x elixir-version: 1.9.2 - run: mix deps.get - run: mix test
But when this runs I’m getting this error during the
mix test portion:
01:16:43.654 [error] GenServer #PID<0.7572.0> terminating ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) role "runner" does not exist (db_connection) lib/db_connection/connection.ex:87: DBConnection.Connection.connect/2 (connection) lib/connection.ex:622: Connection.enter_connect/5 (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 Last message: nil ** (Mix) The database for Statcasters.Repo couldn't be created: killed ##[error]Process completed with exit code 1.
Can anybody help me understand what is going on here? Thank you!