diff --git a/.tangled/workflows/ci-min.yml b/.tangled/workflows/ci-min.yml new file mode 100644 index 0000000..778a501 --- /dev/null +++ b/.tangled/workflows/ci-min.yml @@ -0,0 +1,27 @@ +when: + - event: ["push", "pull_request"] + branch: ["main"] + +engine: microvm +image: nixos + +dependencies: + - beam27Packages.elixir_1_17 + - beam27Packages.erlang + +steps: + - name: setup + command: | + mix local.hex --force + mix local.rebar --force + mix deps.get + - name: compile + command: mix compile --warnings-as-errors + - name: format + command: mix format --check-formatted + - name: credo + command: mix credo --strict + - name: test + command: mix test --warnings-as-errors + - name: unused + command: mix deps.unlock --check-unused diff --git a/.tangled/workflows/ci-unlocked.yml b/.tangled/workflows/ci-unlocked.yml new file mode 100644 index 0000000..c6efaf7 --- /dev/null +++ b/.tangled/workflows/ci-unlocked.yml @@ -0,0 +1,23 @@ +when: + - event: ["push", "pull_request"] + branch: ["main"] + +engine: microvm +image: nixos + +dependencies: + - beam29Packages.elixir_1_20 + - beam29Packages.erlang + +steps: + - name: setup + command: | + mix local.hex --force + mix local.rebar --force + mix deps.get + - name: unlock + command: mix deps.unlock --all + - name: compile + command: mix compile --warnings-as-errors + - name: test + command: mix test --warnings-as-errors diff --git a/mix.exs b/mix.exs index c09423a..4da7983 100644 --- a/mix.exs +++ b/mix.exs @@ -5,7 +5,7 @@ defmodule Latch.MixProject do [ app: :latch, version: "0.1.0", - elixir: "~> 1.20", + elixir: "~> 1.17", start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(),