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

v2.0 (long running PR) #154

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 2 additions & 7 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,16 @@ jobs:
build:
name: Build and test
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
pair:
- elixir: 1.17
otp: 26.2
- elixir: 1.16
otp: 26.2
- elixir: 1.15
otp: 26.2
- elixir: 1.14
otp: 25.3
- elixir: 1.13
otp: 25.3
- elixir: 1.13
otp: 24.2

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 25.3.2.13
elixir 1.17-otp-25
erlang 26.2
elixir 1.17-otp-26
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ Before you begin, ensure you have met the following requirements:
- You have a Docker runtime installed
- You are familiar with Elixir and Docker basics

## Tested compability

- 1.17 25 - 26 (27 is not supported by rabbit_common, so if you dont use that you can still use 27)
- 1.16 24 - 26
- 1.15 24 - 26

## Installation

To add Testcontainers to your project, follow these steps:
Expand Down
11 changes: 0 additions & 11 deletions examples/phoenix_project/lib/hello/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ defmodule Hello.Application do

@impl true
def start(_type, _args) do
if Application.get_env(:testcontainers, :enabled, false) do
{:ok, _container} = Testcontainers.Ecto.postgres_container(app: :hello)

# to use mysql, change
# `adapter: Ecto.Adapters.Postgres`
# in lib/hello/repo.ex, to
# `adapter: Ecto.Adapters.MyXQL`

# {:ok, _container} = Testcontainers.Ecto.mysql_container(app: :hello)
end

children = [
HelloWeb.Telemetry,
Hello.Repo,
Expand Down
8 changes: 4 additions & 4 deletions examples/phoenix_project/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ defmodule Hello.MixProject do
[
setup: [
"deps.get",
#"ecto.setup",
"ecto.setup",
"assets.setup",
"assets.build"
],
#"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
#"ecto.reset": ["ecto.drop", "ecto.setup"],
# test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind default", "esbuild default"],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
Expand Down
Loading
Loading