Skip to content

Commit 22048b0

Browse files
authored
CI housekeeping (#94)
List of changes: - bump github actions - bump minimum elixir from ~> 1.9 to ~> 1.14 - fix formatter config and formatting - quote ci version numbers as yaml strings - remove OTP 25 version guard in otp_cacerts/0 - support latest elixir/otp in ci matrix
1 parent 69cd9f4 commit 22048b0

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

.formatter.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Used by "mix format"
12
[
2-
inputs: ["{mix,.formatter}.exs", "{lib,test}/**/*.{ex,exs}"]
3+
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
34
]

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
env:
1313
MIX_ENV: test
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
include:
1818
- pair:
19-
elixir: 1.9.4
20-
otp: 20.3
19+
elixir: "1.14"
20+
otp: "25"
2121
- pair:
22-
elixir: 1.13.4
23-
otp: 24.3
22+
elixir: "1.19"
23+
otp: "28"
2424
lint: lint
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v6
2727

2828
- uses: erlef/setup-beam@v1
2929
with:

lib/elixir_make/downloader/httpc.ex

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ defmodule ElixirMake.Downloader.Httpc do
6767
end
6868

6969
defp otp_cacerts do
70-
if System.otp_release() >= "25" do
71-
# cacerts_get/0 raises if no certs found
72-
try do
73-
:public_key.cacerts_get()
74-
rescue
75-
_ -> nil
76-
end
70+
# cacerts_get/0 raises if no certs found
71+
try do
72+
:public_key.cacerts_get()
73+
rescue
74+
_ -> nil
7775
end
7876
end
7977

lib/mix/tasks/elixir_make.checksum.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ defmodule Mix.Tasks.ElixirMake.Checksum do
8888

8989
if Keyword.get(options, :print, false) do
9090
artefacts
91-
|> Enum.map(fn %Artefact{basename: basename, checksum: checksum} -> {basename, checksum} end)
91+
|> Enum.map(fn %Artefact{basename: basename, checksum: checksum} ->
92+
{basename, checksum}
93+
end)
9294
|> Enum.sort()
9395
|> Enum.map_join("\n", fn {file, checksum} -> "#{checksum} #{file}" end)
9496
|> IO.puts()

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule ElixirMake.Mixfile do
66
[
77
app: :elixir_make,
88
version: @version,
9-
elixir: "~> 1.9",
9+
elixir: "~> 1.14",
1010
description: "A Make compiler for Mix",
1111
package: package(),
1212
docs: docs(),

0 commit comments

Comments
 (0)