Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: miss get_env #16

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading