Skip to content

Commit

Permalink
Add erlang 27.2 to config
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Dec 13, 2024
1 parent 92b9dc5 commit a84f503
Show file tree
Hide file tree
Showing 15 changed files with 113 additions and 108 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.25
# Created with GitHubActions version 0.2.26
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,28 +23,28 @@ jobs:
- '24.3'
- '25.3'
- '26.2'
- '27.1'
- '27.2'
exclude:
- elixir: '1.13.4'
otp: '26.2'
- elixir: '1.13.4'
otp: '27.1'
otp: '27.2'
- elixir: '1.14.5'
otp: '22.3'
- elixir: '1.14.5'
otp: '27.1'
otp: '27.2'
- elixir: '1.15.8'
otp: '22.3'
- elixir: '1.15.8'
otp: '23.3'
- elixir: '1.15.8'
otp: '27.1'
otp: '27.2'
- elixir: '1.16.3'
otp: '22.3'
- elixir: '1.16.3'
otp: '23.3'
- elixir: '1.16.3'
otp: '27.1'
otp: '27.2'
- elixir: '1.17.3'
otp: '22.3'
- elixir: '1.17.3'
Expand Down Expand Up @@ -74,28 +74,28 @@ jobs:
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Get dependencies
run: mix deps.get
- name: Compile dependencies
run: MIX_ENV=test mix deps.compile
- name: Compile project
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Check unused dependencies
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1')) }}
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.26 2024/12/13

- Add Erlang version `27.2` to config

## 0.2.25 2024/09/23

- Add Elixir version `1.17.3` to config
Expand Down
2 changes: 1 addition & 1 deletion lib/git_hub_actions/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule GitHubActions.Config do
"""
@spec config(config()) :: config() | nil
def config(data) when is_list(data) do
unless Keyword.keyword?(data) do
if !Keyword.keyword?(data) do
raise ArgumentError, "config/1 expected a keyword list, got: #{inspect(data)}"
end

Expand Down
18 changes: 9 additions & 9 deletions lib/git_hub_actions/versions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ defmodule GitHubActions.Versions do
%GitHubActions.Version{major: 1, minor: 17, patch: 3}
iex> Versions.latest(:otp)
%GitHubActions.Version{major: 27, minor: 1}
%GitHubActions.Version{major: 27, minor: 2}
"""
@spec latest(versions() | key()) :: Version.t()
def latest(versions_or_key) when is_list(versions_or_key) do
Expand Down Expand Up @@ -156,7 +156,7 @@ defmodule GitHubActions.Versions do
"18.3", "19.0", "19.1", "19.2", "19.3", "20.0", "20.1", "20.2", "20.3",
"21.0", "21.1", "21.2", "21.3", "22.0", "22.1", "22.2", "22.3", "23.0",
"23.1", "23.2", "23.3", "24.0", "24.1", "24.2", "24.3", "25.0", "25.1",
"25.2", "25.3", "26.0", "26.1", "26.2", "27.0", "27.1"]
"25.2", "25.3", "26.0", "26.1", "26.2", "27.0", "27.1", "27.2"]
"""
@spec latest_minor(versions_list() | key()) :: [Version.t()]
def latest_minor(versions_or_key) when is_list(versions_or_key) do
Expand Down Expand Up @@ -244,7 +244,7 @@ defmodule GitHubActions.Versions do
iex> major_versions = Versions.latest_major(:otp)
iex> Enum.map(major_versions, &to_string/1)
["17.5", "18.3", "19.3", "20.3", "21.3", "22.3", "23.3", "24.3", "25.3", "26.2", "27.1"]
["17.5", "18.3", "19.3", "20.3", "21.3", "22.3", "23.3", "24.3", "25.3", "26.2", "27.2"]
"""
@spec latest_major(versions_list() | key()) :: [Version.t()]
def latest_major(versions_or_key) when is_list(versions_or_key) do
Expand Down Expand Up @@ -657,24 +657,24 @@ defmodule GitHubActions.Versions do
iex> Enum.map(matrix[:elixir], &to_string/1)
["1.12.3", "1.13.4", "1.14.5", "1.15.8", "1.16.3", "1.17.3"]
iex> Enum.map(matrix[:otp], &to_string/1)
["22.3", "23.3", "24.3", "25.3", "26.2", "27.1"]
["22.3", "23.3", "24.3", "25.3", "26.2", "27.2"]
iex> for [{k1, v1}, {k2, v2}] <- matrix[:exclude] do
...> [{k1, to_string(v1)}, {k2, to_string(v2)}]
...> end
[
[elixir: "1.12.3", otp: "25.3"],
[elixir: "1.12.3", otp: "26.2"],
[elixir: "1.12.3", otp: "27.1"],
[elixir: "1.12.3", otp: "27.2"],
[elixir: "1.13.4", otp: "26.2"],
[elixir: "1.13.4", otp: "27.1"],
[elixir: "1.13.4", otp: "27.2"],
[elixir: "1.14.5", otp: "22.3"],
[elixir: "1.14.5", otp: "27.1"],
[elixir: "1.14.5", otp: "27.2"],
[elixir: "1.15.8", otp: "22.3"],
[elixir: "1.15.8", otp: "23.3"],
[elixir: "1.15.8", otp: "27.1"],
[elixir: "1.15.8", otp: "27.2"],
[elixir: "1.16.3", otp: "22.3"],
[elixir: "1.16.3", otp: "23.3"],
[elixir: "1.16.3", otp: "27.1"],
[elixir: "1.16.3", otp: "27.2"],
[elixir: "1.17.3", otp: "22.3"],
[elixir: "1.17.3", otp: "23.3"],
[elixir: "1.17.3", otp: "24.3"]
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule GitHubActions.MixProject do
def project do
[
app: :git_hub_actions,
version: "0.2.25",
version: "0.2.26",
elixir: "~> 1.13",
name: "GitHubActions",
description: "A little tool to write GitHub actions in Elixir",
Expand Down
2 changes: 1 addition & 1 deletion priv/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ config versions: [
]
],
[
otp: ["27.0/1"],
otp: ["27.0/2"],
elixir: [
"1.17.0/3"
]
Expand Down
26 changes: 13 additions & 13 deletions test/fixtures/default.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.25
# Created with GitHubActions version 0.2.26
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,28 +23,28 @@ jobs:
- '24.3'
- '25.3'
- '26.2'
- '27.1'
- '27.2'
exclude:
- elixir: '1.13.4'
otp: '26.2'
- elixir: '1.13.4'
otp: '27.1'
otp: '27.2'
- elixir: '1.14.5'
otp: '22.3'
- elixir: '1.14.5'
otp: '27.1'
otp: '27.2'
- elixir: '1.15.8'
otp: '22.3'
- elixir: '1.15.8'
otp: '23.3'
- elixir: '1.15.8'
otp: '27.1'
otp: '27.2'
- elixir: '1.16.3'
otp: '22.3'
- elixir: '1.16.3'
otp: '23.3'
- elixir: '1.16.3'
otp: '27.1'
otp: '27.2'
- elixir: '1.17.3'
otp: '22.3'
- elixir: '1.17.3'
Expand Down Expand Up @@ -74,28 +74,28 @@ jobs:
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Get dependencies
run: mix deps.get
- name: Compile dependencies
run: MIX_ENV=test mix deps.compile
- name: Compile project
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Check unused dependencies
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1')) }}
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
26 changes: 13 additions & 13 deletions test/fixtures/global_default.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.25
# Created with GitHubActions version 0.2.26
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,28 +23,28 @@ jobs:
- '24.3'
- '25.3'
- '26.2'
- '27.1'
- '27.2'
exclude:
- elixir: '1.13.4'
otp: '26.2'
- elixir: '1.13.4'
otp: '27.1'
otp: '27.2'
- elixir: '1.14.5'
otp: '22.3'
- elixir: '1.14.5'
otp: '27.1'
otp: '27.2'
- elixir: '1.15.8'
otp: '22.3'
- elixir: '1.15.8'
otp: '23.3'
- elixir: '1.15.8'
otp: '27.1'
otp: '27.2'
- elixir: '1.16.3'
otp: '22.3'
- elixir: '1.16.3'
otp: '23.3'
- elixir: '1.16.3'
otp: '27.1'
otp: '27.2'
- elixir: '1.17.3'
otp: '22.3'
- elixir: '1.17.3'
Expand Down Expand Up @@ -74,28 +74,28 @@ jobs:
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Get dependencies
run: mix deps.get
- name: Compile dependencies
run: MIX_ENV=test mix deps.compile
- name: Compile project
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Check unused dependencies
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1')) }}
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
4 changes: 2 additions & 2 deletions test/fixtures/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1')) }}
if: ${{ !(contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}
if: ${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}
Loading

0 comments on commit a84f503

Please sign in to comment.