From 7859ccf3b050b26feff30c78917def3e4566d094 Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Mon, 2 Oct 2023 12:53:54 -0700 Subject: [PATCH 1/2] Updating documentations to suggest running db:setup so that tests can be run in Docker containers. --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d19e264..a028488 100644 --- a/README.md +++ b/README.md @@ -250,16 +250,25 @@ The Solid Cache migrations try to create an index with 1024 byte entries. If tha ## Development -Run the tests with `bin/rails test`. These will run against SQLite. +Run the tests with `bin/rails test`. By default, these will run against SQLite. -You can also run the tests against MySQL and Postgres. First start up the databases: +You can also run the tests against MySQL and PostgreSQL. First start up the databases: ```shell $ docker compose up -d ``` -Then run the tests for the target database +Next, setup the database schema: + +```shell +$ TARGET_DB=mysql bin/rails db:setup +$ TARGET_DB=postgres bin/rails db:setup ``` + + +Then run the tests for the target database: + +```shell $ TARGET_DB=mysql bin/rails test $ TARGET_DB=postgres bin/rails test ``` From 1e9a085ce1f7b3adf61f95c9e24ca5b11e08f17d Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Mon, 2 Oct 2023 12:54:14 -0700 Subject: [PATCH 2/2] Updating Ruby platforms to account for arm65-darwin-23 --- Gemfile.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile.lock b/Gemfile.lock index 2b527c2..c94a73f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -225,6 +225,7 @@ GEM PLATFORMS arm64-darwin-21 arm64-darwin-22 + arm64-darwin-23 x86_64-darwin-20 x86_64-linux