dwyl / elixir-auth-github

:octocat: Minimalist GitHub OAuth Authentication for Elixir Apps. Tested, Documented & Maintained. Setup in 5 mins. 🚀
GNU General Public License v2.0
38 stars 4 forks source link

PR: Update link to demo app from Heroku to Fly.io issue #68 #69

Closed nelsonic closed 1 year ago

nelsonic commented 1 year ago

Deployed to fly.io via https://github.com/dwyl/elixir-auth-github-demo/issues/22 This PR just updates the link and exports the /config for testing convenience. #68

nelsonic commented 1 year ago

https://github.com/dwyl/elixir-auth-github/actions/runs/3663119720/jobs/6192690508 image

erlef/setup-elixir@88597[1](https://github.com/dwyl/elixir-auth-github/actions/runs/3663119720/jobs/6192690508#step:3:1)a[7](https://github.com/dwyl/elixir-auth-github/actions/runs/3663119720/jobs/6192690508#step:3:8)2ed1f9240973bd92ab57af8c1aa68f24
Installing OTP OTP-24.0.2 - built on ubuntu-18.04
Installing Elixir v1.12.3
/home/runner/work/_temp/.setup-elixir/elixir/bin/mix local.rebar --force
/home/runner/work/_temp/.setup-elixir/otp/erts-12.0.2/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Error: The process '/home/runner/work/_temp/.setup-elixir/elixir/bin/mix' failed with exit code 127

hmm ... 🙄 gonna update the versions of Elixir & OTP and hopefully this resolves itself. 🤞

codecov[bot] commented 1 year ago

Codecov Report

Merging #69 (4f4db86) into main (2de12ce) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #69   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           32        32           
=========================================
  Hits            32        32           
Impacted Files Coverage Δ
lib/elixir_auth_github.ex 100.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

nelsonic commented 1 year ago

Dependent on: https://github.com/dwyl/elixir-auth-github-demo/pull/28

nelsonic commented 1 year ago
defmodule ElixirAuthGithub.HTTPoisonMock do
  @doc """
  `get/3` stubs the HTTPoison get! function when parameters match test vars.
  """
  @valid_body %{
    access_token: "12345",
    login: "test_user",
    name: "Testy McTestface",
    email: "test#{:rand.uniform(1_000_000)}@gmail.com",
    avatar_url: "https://avatars3.githubusercontent.com/u/10835816",
    id: "19"
  }

email: "test#{:rand.uniform(1_000_000)}@gmail.com",