Skip to content

Commit

Permalink
fix: miss get_env (#16)
Browse files Browse the repository at this point in the history
(cherry picked from commit fb13ac1)
  • Loading branch information
ThaddeusJiang authored Oct 22, 2024
1 parent 5effd71 commit 80856ef
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Elixir CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.15"
otp-version: "26.0"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: Run tests
run: mix test
5 changes: 5 additions & 0 deletions lib/save_it.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defmodule SaveIt do
def hello do
:world
end
end
1 change: 1 addition & 0 deletions lib/small_sdk/typesense.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule SmallSdk.Typesense do
end

def create_search_key() do
{url, _} = get_env()
req = build_request("/keys")

{:ok, res} =
Expand Down

0 comments on commit 80856ef

Please sign in to comment.