diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c530ac27..806d1f72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: jobs: Test: runs-on: ubuntu-latest + env: + MIX_ENV: test steps: - name: Checkout Code uses: actions/checkout@v1 @@ -16,14 +18,16 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - elixir-version: "1.14" - otp-version: "24.3" + version-file: .tool-versions + version-type: strict - name: Install Dependencies run: | mix local.rebar --force mix local.hex --force mix deps.get + mix deps.update ssl_verify_fun + - name: Run Tests run: mix test @@ -36,8 +40,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - elixir-version: "1.14" - otp-version: "24.3" + version-file: .tool-versions + version-type: strict - name: Install Dependencies run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b295541b..33917eb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@v1 with: - elixir-version: "1.14" - otp-version: "24.3" + version-file: .tool-versions + version-type: strict - name: Restore dependencies cache uses: actions/cache@v2 with: diff --git a/.gitignore b/.gitignore index 5e6ac1b6..70fae60f 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ guardian-*.tar .DS_Store /priv/plts/*.plt /priv/plts/*.plt.hash + +!.tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..1d98e34a --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +erlang 26.0 +elixir 1.15 diff --git a/mix.lock b/mix.lock index 241252d0..3a89ac7b 100644 --- a/mix.lock +++ b/mix.lock @@ -30,6 +30,6 @@ "plug": {:hex, :plug, "1.7.2", "d7b7db7fbd755e8283b6c0a50be71ec0a3d67d9213d74422d9372effc8e87fd1", [:mix], [{:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}], "hexpm", "de9825f21c6fd6adfdeae8f9c80dcd88c1e58301f06bf13d659b7e606b88abe0"}, "plug_crypto": {:hex, :plug_crypto, "1.0.0", "18e49317d3fa343f24620ed22795ec29d4a5e602d52d1513ccea0b07d8ea7d4d", [:mix], [], "hexpm", "73c1682f0e414cfb5d9b95c8e8cd6ffcfdae699e3b05e1db744e58b7be857759"}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}, - "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, + "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, }