Skip to content

Commit 975de4e

Browse files
committed
Updates Elixir and Erlang/OTP to latest versions where tests pass
tests code against a number of versions of Elixir and Erlang/OTP Separates linting from testing
1 parent e97a169 commit 975de4e

File tree

4 files changed

+93
-9
lines changed

4 files changed

+93
-9
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 88 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,54 @@ name: lint-and-test
33
on: [push, workflow_dispatch]
44

55
jobs:
6-
lint-and-test:
7-
runs-on: ubuntu-22.04
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
versions:
11+
- elixir: '1.14'
12+
otp: '24.2'
13+
- elixir: '1.14'
14+
otp: '24.3'
15+
- elixir: '1.14'
16+
otp: '25.3'
17+
18+
- elixir: '1.15'
19+
otp: '24.3'
20+
- elixir: '1.15'
21+
otp: '25.3'
22+
- elixir: '1.15'
23+
otp: '26.2'
24+
25+
- elixir: '1.16'
26+
otp: '24.3'
27+
- elixir: '1.16'
28+
otp: '25.3'
29+
- elixir: '1.16'
30+
otp: '26.2'
31+
32+
- elixir: '1.17'
33+
otp: '25.3'
34+
- elixir: '1.17'
35+
otp: '26.2'
36+
- elixir: '1.17'
37+
otp: '27.3'
38+
39+
os:
40+
- 'ubuntu-22.04'
41+
- 'ubuntu-24.04'
42+
43+
exclude:
44+
- versions:
45+
elixir: '1.14'
46+
otp: '24.2'
47+
os: 'ubuntu-24.04'
48+
- versions:
49+
elixir: '1.16'
50+
otp: '24.3'
51+
os: 'ubuntu-22.04'
52+
53+
runs-on: ${{ matrix.os }}
854

955
services:
1056
postgres:
@@ -25,8 +71,8 @@ jobs:
2571

2672
- uses: erlef/setup-beam@v1
2773
with:
28-
otp-version: '24.2'
29-
elixir-version: '1.14'
74+
otp-version: ${{ matrix.versions.otp }}
75+
elixir-version: ${{ matrix.versions.elixir }}
3076

3177
- uses: actions/cache@v4
3278
with:
@@ -38,6 +84,43 @@ jobs:
3884
- run: mix local.hex --force
3985
- run: mix local.rebar --force
4086
- run: mix deps.get
41-
- run: mix compile --warnings-as-errors
87+
- run: mix compile # --warnings-as-errors
4288
- run: mix test
89+
90+
91+
lint:
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
versions:
96+
- elixir: '1.14'
97+
otp: '24.3'
98+
99+
- elixir: '1.15'
100+
otp: '24.3'
101+
102+
- elixir: '1.16'
103+
otp: '24.3'
104+
105+
- elixir: '1.17'
106+
otp: '25.3'
107+
108+
runs-on: 'ubuntu-24.04'
109+
110+
steps:
111+
- uses: actions/checkout@v4
112+
113+
- uses: erlef/setup-beam@v1
114+
with:
115+
otp-version: ${{ matrix.versions.otp }}
116+
elixir-version: ${{ matrix.versions.elixir }}
117+
118+
- uses: actions/cache@v4
119+
with:
120+
path: |
121+
deps
122+
_build
123+
key: mix-${{ hashFiles('mix.lock') }}
124+
125+
# - run: mix format '{lib,priv,test,config}/**/*.{ex,exs}'
43126
- run: mix format --check-formatted '{lib,priv,test,config}/**/*.{ex,exs}'

.github/workflows/ret-turkey.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
turkeyGitops:
10+
if: github.repository_owner == 'Hubs-Foundation'
1011
uses: Hubs-Foundation/hubs-ops/.github/workflows/turkeyGitops.yml@master
1112
with:
1213
registry: hubsfoundation

TurkeyDockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
2-
ARG ALPINE_VERSION=3.16.2
3-
ARG ELIXIR_VERSION=1.14.3
4-
ARG ERLANG_VERSION=23.3.4.18
2+
ARG ALPINE_VERSION=3.21.3
3+
ARG ELIXIR_VERSION=1.16.3
4+
ARG ERLANG_VERSION=25.3.2.20
55

66
FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-alpine-${ALPINE_VERSION} AS base
77
RUN mix do local.hex --force, local.rebar --force

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"sleeplocks": {:hex, :sleeplocks, "1.1.1", "3d462a0639a6ef36cc75d6038b7393ae537ab394641beb59830a1b8271faeed3", [:rebar3], [], "hexpm", "84ee37aeff4d0d92b290fff986d6a95ac5eedf9b383fadfd1d88e9b84a1c02e1"},
8080
"slugger": {:hex, :slugger, "0.3.0", "efc667ab99eee19a48913ccf3d038b1fb9f165fa4fbf093be898b8099e61b6ed", [:mix], [], "hexpm", "20d0ded0e712605d1eae6c5b4889581c3460d92623a930ddda91e0e609b5afba"},
8181
"socket": {:hex, :socket, "0.3.13", "98a2ab20ce17f95fb512c5cadddba32b57273e0d2dba2d2e5f976c5969d0c632", [:mix], [], "hexpm", "f82ea9833ef49dde272e6568ab8aac657a636acb4cf44a7de8a935acb8957c2e"},
82-
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"},
82+
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"},
8383
"statix": {:hex, :statix, "1.4.0", "c822abd1e60e62828e8460e932515d0717aa3c089b44cc3f795d43b94570b3a8", [:mix], [], "hexpm", "507373cc80925a9b6856cb14ba17f6125552434314f6613c907d295a09d1a375"},
8484
"stream_data": {:git, "https://github.com/whatyouhide/stream_data.git", "c7ef8ef9c1fe78e6f404272c7129c4eac83db53c", [ref: "c7ef8ef"]},
8585
"telemetry": {:hex, :telemetry, "0.4.3", "a06428a514bdbc63293cd9a6263aad00ddeb66f608163bdec7c8995784080818", [:rebar3], [], "hexpm", "eb72b8365ffda5bed68a620d1da88525e326cb82a75ee61354fc24b844768041"},

0 commit comments

Comments
 (0)