Skip to content

Commit 069971f

Browse files
committed
Upgrade credo so it works with 1.17 and run 1.17 for fancy things on CI
1 parent 712a762 commit 069971f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,26 +70,26 @@ jobs:
7070
with:
7171
path: tools/plts
7272
key: erlef-${{ runner.os }}-dialyzer-${{ matrix.elixir_version }}-${{ matrix.otp_version }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
73-
if: contains(matrix.elixir_version, '1.16')
73+
if: contains(matrix.elixir_version, '1.17')
7474
- run: mix deps.get
7575
- run: MIX_ENV=test mix compile --warnings-as-errors
7676
- run: mix credo
77-
if: contains(matrix.elixir_version, '1.16')
77+
if: contains(matrix.elixir_version, '1.17')
7878
- name: Check if formatted
79-
if: contains(matrix.elixir_version, '1.16')
79+
if: contains(matrix.elixir_version, '1.17')
8080
run: mix format --check-formatted
8181
- name: Actual Tests
8282
# this will let warnings slip through but I don't wanna replicate all that magic
8383
# right now
8484
run: MIX_ENV=test mix coveralls.github || mix test --failed
8585
# Apparently the one with `!` can't go without the fancy expression syntax
86-
if: ${{ !contains(matrix.elixir_version, '1.16') }}
86+
if: ${{ !contains(matrix.elixir_version, '1.17') }}
8787
- name: Actual Tests WITH warnings as errors
8888
run: MIX_ENV=test mix coveralls.github --warnings-as-errors || mix test --failed
89-
if: contains(matrix.elixir_version, '1.16')
89+
if: contains(matrix.elixir_version, '1.17')
9090
- name: Dialyzer
9191
run: mix dialyzer --halt-exit-status
92-
if: contains(matrix.elixir_version, '1.16')
92+
if: contains(matrix.elixir_version, '1.17')
9393

9494
macos:
9595
name: Test on MacOS

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ defmodule Benchee.Mixfile do
4646
{:deep_merge, "~> 1.0"},
4747
{:statistex, "~> 1.0"},
4848
{:ex_guard, "~> 1.3", only: :dev},
49-
{:credo, "~> 1.7.2-rc.0", only: :dev, runtime: false},
49+
{:credo, "~> 1.7.7-rc.0", only: :dev, runtime: false},
5050
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
5151
{:excoveralls, "~> 0.13", only: :test},
5252
{:dialyxir, "~> 1.0", only: :dev, runtime: false},

mix.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%{
22
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
3-
"credo": {:hex, :credo, "1.7.6", "b8f14011a5443f2839b04def0b252300842ce7388f3af177157c86da18dfbeea", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "146f347fb9f8cbc5f7e39e3f22f70acbef51d441baa6d10169dd604bfbc55296"},
3+
"credo": {:hex, :credo, "1.7.7-rc.0", "a7fb63b6e30e523355fb545cb089c5cba550b6d92e1a70db131e01a5dbb77368", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "c977f50ada33d6b053122945a0e4e74280585f7f8ac617aca46c913e88cc4de0"},
44
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
55
"dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"},
66
"doctest_formatter": {:hex, :doctest_formatter, "0.3.0", "19da9fd0d9d1e895f86d7508f1962d8a16393277f73aba1066dddb3d2adcdfc8", [:mix], [], "hexpm", "485f4dab4fc65ecf18aa342d285b393db16814d828caa671c42f9f781b68cf5a"},

0 commit comments

Comments
 (0)