From bb39889ba0d0e30e356d5d4d6413b42bddb37913 Mon Sep 17 00:00:00 2001 From: Eddie Whiteside Date: Thu, 28 Sep 2023 10:03:58 +0100 Subject: [PATCH] COOP-270: Add maintenance tooling (#2) * COOP-270: Add credo & dialyzer * COOP-270: Add dependabot --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/ci.yaml | 8 ++++---- mix.exs | 4 ++-- mix.lock | 8 ++++++++ 4 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 mix.lock diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9090f86 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# Docs: +# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates#configuration-options-for-dependabotyml + +version: 2 + +updates: + - package-ecosystem: mix + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f865d98..f359152 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,14 +85,14 @@ jobs: - name: Check Formatting run: mix format --check-formatted - # - name: Credo - # run: mix credo -a --strict + - name: Credo + run: mix credo -a --strict - name: Test run: mix test - # - name: Dialyzer - # run: mix dialyzer + - name: Dialyzer + run: mix dialyzer alls-green: if: always() diff --git a/mix.exs b/mix.exs index 408126e..4f4b53a 100644 --- a/mix.exs +++ b/mix.exs @@ -22,8 +22,8 @@ defmodule CloudflareAccessEx.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ - # {:dep_from_hexpm, "~> 0.3.0"}, - # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} + {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} ] end end diff --git a/mix.lock b/mix.lock new file mode 100644 index 0000000..7168e3c --- /dev/null +++ b/mix.lock @@ -0,0 +1,8 @@ +%{ + "bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"}, + "credo": {:hex, :credo, "1.7.0", "6119bee47272e85995598ee04f2ebbed3e947678dee048d10b5feca139435f75", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "6839fcf63d1f0d1c0f450abc8564a57c43d644077ab96f2934563e68b8a769d7"}, + "dialyxir": {:hex, :dialyxir, "1.4.1", "a22ed1e7bd3a3e3f197b68d806ef66acb61ee8f57b3ac85fc5d57354c5482a93", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "84b795d6d7796297cca5a3118444b80c7d94f7ce247d49886e7c291e1ae49801"}, + "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, + "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, + "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, +}