Skip to content

Commit 9f2cd1b

Browse files
authored
Merge pull request #21 from NarrativeApp/chore/migrate-github-runners-away-from-2004-image-epd-1270
chore: update dependencies and GitHub Actions configuration
2 parents e4a37ef + 8758d14 commit 9f2cd1b

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

.github/workflows/private-elixir-library-w-git-ops.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ on: push
33
name: Privately published Elixir Library (with git ops)
44

55
env:
6-
ELIXIR_VERSION: "1.12.3"
7-
OTP_VERSION: "24.3.3"
6+
ELIXIR_VERSION: "1.14.5-otp-24"
7+
OTP_VERSION: "24.3.4.17"
88

99
jobs:
1010
deps:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
env:
1313
NARRATIVE_HEX_ORG_API_KEY: ${{ secrets.NARRATIVE_HEX_ORG_API_KEY }}
1414
MIX_ENV: test
@@ -33,9 +33,10 @@ jobs:
3333
with:
3434
name: deps
3535
path: deps/
36+
include-hidden-files: true
3637

3738
build:
38-
runs-on: ubuntu-20.04
39+
runs-on: ubuntu-24.04
3940
needs: ["deps"]
4041
env:
4142
MIX_ENV: test
@@ -66,7 +67,7 @@ jobs:
6667
path: _build/
6768

6869
credo:
69-
runs-on: ubuntu-20.04
70+
runs-on: ubuntu-24.04
7071
needs: ["deps", "build"]
7172
env:
7273
MIX_ENV: test
@@ -91,7 +92,7 @@ jobs:
9192
- run: mix credo --strict
9293

9394
formatter:
94-
runs-on: ubuntu-20.04
95+
runs-on: ubuntu-24.04
9596
steps:
9697
- name: Checking out project
9798
uses: actions/checkout@v4
@@ -103,7 +104,7 @@ jobs:
103104
- run: mix format --check-formatted
104105

105106
audit:
106-
runs-on: ubuntu-20.04
107+
runs-on: ubuntu-24.04
107108
needs: ["deps"]
108109
env:
109110
NARRATIVE_HEX_ORG_API_KEY: ${{ secrets.NARRATIVE_HEX_ORG_API_KEY }}
@@ -125,7 +126,7 @@ jobs:
125126
- run: mix hex.audit
126127

127128
test:
128-
runs-on: ubuntu-20.04
129+
runs-on: ubuntu-24.04
129130
needs: ["deps", "build"]
130131
env:
131132
MIX_ENV: test
@@ -150,7 +151,7 @@ jobs:
150151
- run: mix test
151152

152153
is_releasable:
153-
runs-on: ubuntu-20.04
154+
runs-on: ubuntu-24.04
154155
needs: ["deps", "test", "audit", "formatter", "credo"]
155156
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/master'}}
156157
env:
@@ -192,7 +193,7 @@ jobs:
192193
path: docs.tar.gz
193194

194195
git_ops:
195-
runs-on: ubuntu-20.04
196+
runs-on: ubuntu-24.04
196197
needs: ["deps", "test", "audit", "formatter", "credo"]
197198
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
198199
env:

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elixir 1.14.5-otp-24
2+
erlang 24.3.4.17

lib/mix/tasks/deploy.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ defmodule Mix.Tasks.Deploy do
3131
app_name
3232
|> to_string
3333
|> String.split("_")
34-
|> Enum.map(&String.capitalize/1)
35-
|> Enum.join("")
34+
|> Enum.map_join("", &String.capitalize/1)
3635

3736
base_dir = user_config[:base_dir] || "/srv"
3837

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule MixDeploy.MixProject do
3232
# Run "mix help deps" to learn about dependencies.
3333
defp deps do
3434
[
35-
{:credo, "~> 1.5.1", only: ~w[dev test]a, runtime: false},
35+
{:credo, "~> 1.7", only: ~w[dev test]a, runtime: false},
3636
{:ex_doc, ">= 0.0.0", only: ~w[dev test]a},
3737
{:git_ops, "~> 2.2", only: ~w[dev test]a, runtime: false},
3838
{:mix_systemd, "~> 0.9.0", organization: "narrativeapp"}

mix.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
%{
2-
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"},
3-
"credo": {:hex, :credo, "1.5.5", "e8f422026f553bc3bebb81c8e8bf1932f498ca03339856c7fec63d3faac8424b", [:mix], [{:bunt, "~> 0.2.0", [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", "dd8623ab7091956a855dc9f3062486add9c52d310dfd62748779c4315d8247de"},
2+
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
3+
"credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [: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", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"},
44
"earmark": {:hex, :earmark, "1.3.1", "73812f447f7a42358d3ba79283cfa3075a7580a3a2ed457616d6517ac3738cb9", [:mix], [], "hexpm", "000aaeff08919e95e7aea13e4af7b2b9734577b3e6a7c50ee31ee88cab6ec4fb"},
55
"earmark_parser": {:hex, :earmark_parser, "1.4.12", "b245e875ec0a311a342320da0551da407d9d2b65d98f7a9597ae078615af3449", [:mix], [], "hexpm", "711e2cc4d64abb7d566d43f54b78f7dc129308a63bc103fbd88550d2174b3160"},
66
"ex_doc": {:hex, :ex_doc, "0.24.2", "e4c26603830c1a2286dae45f4412a4d1980e1e89dc779fcd0181ed1d5a05c8d9", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "e134e1d9e821b8d9e4244687fb2ace58d479b67b282de5158333b0d57c6fb7da"},
7-
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
7+
"file_system": {:hex, :file_system, "1.1.0", "08d232062284546c6c34426997dd7ef6ec9f8bbd090eb91780283c9016840e8f", [:mix], [], "hexpm", "bfcf81244f416871f2a2e15c1b515287faa5db9c6bcf290222206d120b3d43f6"},
88
"git_cli": {:hex, :git_cli, "0.3.0", "a5422f9b95c99483385b976f5d43f7e8233283a47cda13533d7c16131cb14df5", [:mix], [], "hexpm", "78cb952f4c86a41f4d3511f1d3ecb28edb268e3a7df278de2faa1bd4672eaf9b"},
99
"git_ops": {:hex, :git_ops, "2.4.2", "291a4f105dfa3d34cffa56cf8faf0e8c2699b49d3316270aa4881e75c62b1832", [:mix], [{:git_cli, "~> 0.2", [hex: :git_cli, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "bd9051c49e17d0dc2e0ae9306292f9f5f671d402227f5dda12e69a702198dec4"},
10-
"jason": {:hex, :jason, "1.2.2", "ba43e3f2709fd1aa1dce90aaabfd039d000469c05c56f0b8e31978e03fa39052", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "18a228f5f0058ee183f29f9eae0805c6e59d61c3b006760668d8d18ff0d12179"},
10+
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
1111
"makeup": {:hex, :makeup, "1.0.5", "d5a830bc42c9800ce07dd97fa94669dfb93d3bf5fcf6ea7a0c67b2e0e4a7f26c", [:mix], [{:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cfa158c02d3f5c0c665d0af11512fed3fba0144cf1aadee0f2ce17747fba2ca9"},
1212
"makeup_elixir": {:hex, :makeup_elixir, "0.15.1", "b5888c880d17d1cc3e598f05cdb5b5a91b7b17ac4eaf5f297cb697663a1094dd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "db68c173234b07ab2a07f645a5acdc117b9f99d69ebf521821d89690ae6c6ec8"},
1313
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},

0 commit comments

Comments
 (0)