From a84f503cebe796e5503383b788d767b801a07853 Mon Sep 17 00:00:00 2001 From: Marcus Kruse Date: Fri, 13 Dec 2024 18:54:36 +0100 Subject: [PATCH] Add erlang 27.2 to config --- .github/workflows/ci.yml | 26 ++++++++--------- CHANGELOG.md | 4 +++ lib/git_hub_actions/config.ex | 2 +- lib/git_hub_actions/versions.ex | 18 ++++++------ mix.exs | 2 +- priv/config.exs | 2 +- test/fixtures/default.yml | 26 ++++++++--------- test/fixtures/global_default.yml | 26 ++++++++--------- test/fixtures/macos.yml | 4 +-- test/fixtures/no_comment.yml | 24 ++++++++-------- test/fixtures/opt_output.yml | 26 ++++++++--------- test/fixtures/opt_workflow.yml | 2 +- test/fixtures/windows.yml | 2 +- test/git_hub_actions/versions_test.exs | 17 +++++------ test/git_hub_actions/workflow_test.exs | 40 +++++++++++++------------- 15 files changed, 113 insertions(+), 108 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c19006..9db2053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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' @@ -74,7 +74,7 @@ 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 @@ -82,20 +82,20 @@ jobs: - 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') }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b48d4..97fa752 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/git_hub_actions/config.ex b/lib/git_hub_actions/config.ex index 3462825..d10bbd3 100644 --- a/lib/git_hub_actions/config.ex +++ b/lib/git_hub_actions/config.ex @@ -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 diff --git a/lib/git_hub_actions/versions.ex b/lib/git_hub_actions/versions.ex index e3b45b2..bd8298c 100644 --- a/lib/git_hub_actions/versions.ex +++ b/lib/git_hub_actions/versions.ex @@ -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 @@ -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 @@ -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 @@ -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"] diff --git a/mix.exs b/mix.exs index 3df8e64..43e572a 100644 --- a/mix.exs +++ b/mix.exs @@ -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", diff --git a/priv/config.exs b/priv/config.exs index 67a3232..b7bfeb4 100644 --- a/priv/config.exs +++ b/priv/config.exs @@ -141,7 +141,7 @@ config versions: [ ] ], [ - otp: ["27.0/1"], + otp: ["27.0/2"], elixir: [ "1.17.0/3" ] diff --git a/test/fixtures/default.yml b/test/fixtures/default.yml index 8c19006..9db2053 100644 --- a/test/fixtures/default.yml +++ b/test/fixtures/default.yml @@ -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 }} @@ -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' @@ -74,7 +74,7 @@ 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 @@ -82,20 +82,20 @@ jobs: - 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') }} diff --git a/test/fixtures/global_default.yml b/test/fixtures/global_default.yml index 8c19006..9db2053 100644 --- a/test/fixtures/global_default.yml +++ b/test/fixtures/global_default.yml @@ -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 }} @@ -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' @@ -74,7 +74,7 @@ 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 @@ -82,20 +82,20 @@ jobs: - 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') }} diff --git a/test/fixtures/macos.yml b/test/fixtures/macos.yml index 4c47a4a..5439319 100644 --- a/test/fixtures/macos.yml +++ b/test/fixtures/macos.yml @@ -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') }} diff --git a/test/fixtures/no_comment.yml b/test/fixtures/no_comment.yml index d359139..fc341c7 100644 --- a/test/fixtures/no_comment.yml +++ b/test/fixtures/no_comment.yml @@ -22,28 +22,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' @@ -73,7 +73,7 @@ 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 @@ -81,20 +81,20 @@ jobs: - 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') }} diff --git a/test/fixtures/opt_output.yml b/test/fixtures/opt_output.yml index 8c19006..9db2053 100644 --- a/test/fixtures/opt_output.yml +++ b/test/fixtures/opt_output.yml @@ -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 }} @@ -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' @@ -74,7 +74,7 @@ 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 @@ -82,20 +82,20 @@ jobs: - 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') }} diff --git a/test/fixtures/opt_workflow.yml b/test/fixtures/opt_workflow.yml index 4889e10..ec6fa37 100644 --- a/test/fixtures/opt_workflow.yml +++ b/test/fixtures/opt_workflow.yml @@ -1,2 +1,2 @@ -# Created with GitHubActions version 0.2.25 +# Created with GitHubActions version 0.2.26 name: CI diff --git a/test/fixtures/windows.yml b/test/fixtures/windows.yml index d7bcb5f..847ecee 100644 --- a/test/fixtures/windows.yml +++ b/test/fixtures/windows.yml @@ -15,7 +15,7 @@ jobs: uses: erlef/setup-beam@v1 with: elixir-version: '1.17.3' - otp-version: '27.1' + otp-version: '27.2' - name: Get dependencies run: mix deps.get - name: Compile dependencies diff --git a/test/git_hub_actions/versions_test.exs b/test/git_hub_actions/versions_test.exs index bfe436c..ef608be 100644 --- a/test/git_hub_actions/versions_test.exs +++ b/test/git_hub_actions/versions_test.exs @@ -19,7 +19,7 @@ defmodule GitHubActions.VersionsTest do test "from_config/0" do assert List.last(Versions.from_config()) == - [otp: ["27.0/1"], elixir: ["1.17.0/3"]] + [otp: ["27.0/2"], elixir: ["1.17.0/3"]] end describe "get/2" do @@ -183,7 +183,8 @@ defmodule GitHubActions.VersionsTest do "26.1", "26.2", "27.0", - "27.1" + "27.1", + "27.2" ] end end @@ -341,7 +342,7 @@ defmodule GitHubActions.VersionsTest do %Version{major: 24, minor: 3}, %Version{major: 25, minor: 3}, %Version{major: 26, minor: 2}, - %Version{major: 27, minor: 1} + %Version{major: 27, minor: 2} ] end end @@ -481,23 +482,23 @@ defmodule GitHubActions.VersionsTest do elixir: %Version{major: 1, minor: 13, patch: 4} ], [ - otp: %Version{major: 27, minor: 1}, + otp: %Version{major: 27, minor: 2}, elixir: %Version{major: 1, minor: 12, patch: 3} ], [ - otp: %Version{major: 27, minor: 1}, + otp: %Version{major: 27, minor: 2}, elixir: %Version{major: 1, minor: 13, patch: 4} ], [ - otp: %Version{major: 27, minor: 1}, + otp: %Version{major: 27, minor: 2}, elixir: %Version{major: 1, minor: 14, patch: 5} ], [ - otp: %Version{major: 27, minor: 1}, + otp: %Version{major: 27, minor: 2}, elixir: %Version{major: 1, minor: 15, patch: 8} ], [ - otp: %Version{major: 27, minor: 1}, + otp: %Version{major: 27, minor: 2}, elixir: %Version{major: 1, minor: 16, patch: 3} ] ] diff --git a/test/git_hub_actions/workflow_test.exs b/test/git_hub_actions/workflow_test.exs index ea24bee..a7b3926 100644 --- a/test/git_hub_actions/workflow_test.exs +++ b/test/git_hub_actions/workflow_test.exs @@ -56,33 +56,33 @@ defmodule GitHubActions.WorkflowTest do "1.16.3", "1.17.3" ], - otp: ["21.3", "22.3", "23.3", "24.3", "25.3", "26.2", "27.1"], + otp: ["21.3", "22.3", "23.3", "24.3", "25.3", "26.2", "27.2"], exclude: [ [elixir: "1.10.4", otp: "24.3"], [elixir: "1.10.4", otp: "25.3"], [elixir: "1.10.4", otp: "26.2"], - [elixir: "1.10.4", otp: "27.1"], + [elixir: "1.10.4", otp: "27.2"], [elixir: "1.11.4", otp: "25.3"], [elixir: "1.11.4", otp: "26.2"], - [elixir: "1.11.4", otp: "27.1"], + [elixir: "1.11.4", otp: "27.2"], [elixir: "1.12.3", otp: "21.3"], [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: "21.3"], [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: "21.3"], [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: "21.3"], [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: "21.3"], [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: "21.3"], [elixir: "1.17.3", otp: "22.3"], [elixir: "1.17.3", otp: "23.3"], @@ -131,18 +131,18 @@ defmodule GitHubActions.WorkflowTest do strategy: [ matrix: [ elixir: ["1.13.4", "1.14.5", "1.15.8", "1.16.3", "1.17.3"], - otp: ["22.3", "23.3", "24.3", "25.3", "26.2", "27.1"], + otp: ["22.3", "23.3", "24.3", "25.3", "26.2", "27.2"], exclude: [ [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"] @@ -186,7 +186,7 @@ defmodule GitHubActions.WorkflowTest do "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') }}" + "${{ 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"], @@ -197,38 +197,38 @@ defmodule GitHubActions.WorkflowTest do [ name: "Check unused dependencies", if: - "${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.1') }}", + "${{ 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') }}", + "${{ 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') }}", + "${{ 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')) }}" + "${{ !(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') }}" + "${{ 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') }}" + "${{ contains(matrix.elixir, '1.17.3') && contains(matrix.otp, '27.2') }}" ] ] ]