This commit is contained in:
Mayel de Borniol 2021-11-25 15:21:03 +13:00
parent fc51cb6277
commit cab9c63b5c
3 changed files with 13 additions and 10 deletions

View file

@ -14,6 +14,7 @@ jobs:
container: elixir:alpine
env:
FLAVOUR: classic
MIX_ENV: test
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: postgres
CI: true
@ -78,11 +79,11 @@ jobs:
- name: Clean-build Bonfire data extensions
run: mix bonfire.deps.clean
- name: Compile deps & app
run: MIX_ENV=test mix
run: mix
- name: Set up database
run: MIX_ENV=test mix ecto.setup
run: mix ecto.setup
- name: Check that database migrations can rollback
run: MIX_ENV=test mix ecto.rollback --all && mix ecto.reset
run: mix ecto.rollback --all && mix ecto.migrate
- name: Run tests
run: mix test
@ -92,6 +93,7 @@ jobs:
container: elixir:alpine
env:
FLAVOUR: cooperation
MIX_ENV: test
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: postgres
CI: true
@ -151,11 +153,11 @@ jobs:
- name: Clean-build Bonfire data extensions
run: mix bonfire.deps.clean
- name: Compile deps & app
run: MIX_ENV=test mix
run: mix
- name: Set up database
run: MIX_ENV=test mix ecto.setup
run: mix ecto.setup
- name: Generate docs
run: MIX_ENV=test mix docs
run: mix docs
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
@ -163,6 +165,6 @@ jobs:
publish_dir: ./docs/exdoc
cname: doc.bonfirenetworks.org
- name: Check that database migrations can rollback
run: MIX_ENV=test mix ecto.rollback --all && mix ecto.reset
run: mix ecto.rollback --all && mix ecto.migrate
- name: Run tests
run: mix test

View file

@ -3,7 +3,7 @@ defmodule Bonfire.MixProject do
use Mix.Project
@config [
version: "0.1.0-beta.52", # note that the flavour will automatically be added where the dash appears
version: "0.1.0-beta.53", # note that the flavour will automatically be added where the dash appears
elixir: "~> 1.12",
default_flavour: "classic",
deps_prefixes: [
@ -77,7 +77,8 @@ defmodule Bonfire.MixProject do
setup: ["hex.setup", "rebar.setup", "deps.get", "bonfire.deps.clean", "ecto.setup"],
updates: ["deps.get", "bonfire.deps"],
upgrade: ["updates", "ecto.migrate"],
"ecto.setup": ["ecto.create", "ecto.migrate", "bonfire.seeds"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.migrate": ["ecto.migrate", "bonfire.seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]

View file

@ -8,7 +8,7 @@
"argon2_elixir": {:hex, :argon2_elixir, "2.4.0", "2a22ea06e979f524c53b42b598fc6ba38cdcbc977a155e33e057732cfb1fb311", [:make, :mix], [{:comeonin, "~> 5.3", [hex: :comeonin, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "4ea82e183cf8e7f66dab1f767fedcfe6a195e140357ef2b0423146b72e0a551d"},
"bamboo": {:hex, :bamboo, "1.7.1", "7f0946e8c9081ce10d347cdba33c247c7c1c4f7dddc194ab0633603ef879bbdf", [:mix], [{:hackney, ">= 1.15.2", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.4", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.1", [hex: :phoenix, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "5fb34c3ab638fc409deec47c1e91f9d78ad95bf22ccb153588b434e1ff1aa730"},
"bamboo_smtp": {:hex, :bamboo_smtp, "3.0.0", "b7f0c371af96a1cb7131908918b02abb228f9db234910bf10cf4fb177c083259", [:mix], [{:bamboo, "~> 1.2", [hex: :bamboo, repo: "hexpm", optional: false]}, {:gen_smtp, "~> 0.15.0", [hex: :gen_smtp, repo: "hexpm", optional: false]}], "hexpm", "77cb1fa3076b24109e54df622161fe1e5619376b4ecf86d8b99b46f327acc49f"},
"bonfire_api_graphql": {:git, "https://github.com/bonfire-networks/bonfire_api_graphql", "e16ad34c2238028c0ef1d27c6bbcbd4ff32d5500", [branch: "main"]},
"bonfire_api_graphql": {:git, "https://github.com/bonfire-networks/bonfire_api_graphql", "e3679cc8fdd41be145828fb50f6c28bf78550162", [branch: "main"]},
"bonfire_boundaries": {:git, "https://github.com/bonfire-networks/bonfire_boundaries", "7a788225c0c50032cce1923a55829aba4d4efbec", [branch: "main"]},
"bonfire_breadpub": {:git, "https://github.com/bonfire-networks/bonfire_breadpub", "38fb30a1fdde605f6c319b40db2ba4acf5fcf4a7", [branch: "main"]},
"bonfire_classify": {:git, "https://github.com/bonfire-networks/bonfire_classify", "417e4d6f6e5e6d4eb98bc257cddceee9c4b3ea4b", [branch: "main"]},