Skip to content

Commit

Permalink
Updates for Elixir 1.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Mar 11, 2024
1 parent df5e29e commit d4bad04
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 82 deletions.
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.21 2024/03/11

- Add Elixir version `1.16.2` to config

## 0.2.20 2024/02/10

- Add Elixir version `1.16.1` to config
Expand Down
12 changes: 6 additions & 6 deletions lib/git_hub_actions/versions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule GitHubActions.Versions do
** (ArgumentError) latest/1 expected a list or table of versions or a key, got: [a: "1"]
iex> Versions.latest(:elixir)
#Version<1.16.1>
#Version<1.16.2>
iex> Versions.latest(:otp)
#Version<26.2>
Expand Down Expand Up @@ -148,7 +148,7 @@ defmodule GitHubActions.Versions do
iex> Enum.map(minor_versions, &to_string/1)
["1.0.5", "1.1.1", "1.2.6", "1.3.4", "1.4.5", "1.5.3", "1.6.6", "1.7.4",
"1.8.2", "1.9.4", "1.10.4", "1.11.4", "1.12.3", "1.13.4", "1.14.5",
"1.15.7", "1.16.1"]
"1.15.7", "1.16.2"]
iex> minor_versions = Versions.latest_minor(:otp)
iex> Enum.map(minor_versions, &to_string/1)
Expand Down Expand Up @@ -240,7 +240,7 @@ defmodule GitHubActions.Versions do
iex> major_versions = Versions.latest_major(:elixir)
iex> Enum.map(major_versions, &to_string/1)
["1.16.1"]
["1.16.2"]
iex> major_versions = Versions.latest_major(:otp)
iex> Enum.map(major_versions, &to_string/1)
Expand Down Expand Up @@ -655,7 +655,7 @@ defmodule GitHubActions.Versions do
iex> matrix = Versions.matrix(elixir: ">= 1.12.0", otp: ">= 22.0.0")
iex> Enum.map(matrix[:elixir], &to_string/1)
["1.12.3", "1.13.4", "1.14.5", "1.15.7", "1.16.1"]
["1.12.3", "1.13.4", "1.14.5", "1.15.7", "1.16.2"]
iex> Enum.map(matrix[:otp], &to_string/1)
["22.3", "23.3", "24.3", "25.3", "26.2"]
iex> for [{k1, v1}, {k2, v2}] <- matrix[:exclude] do
Expand All @@ -668,8 +668,8 @@ defmodule GitHubActions.Versions do
[elixir: "1.14.5", otp: "22.3"],
[elixir: "1.15.7", otp: "22.3"],
[elixir: "1.15.7", otp: "23.3"],
[elixir: "1.16.1", otp: "22.3"],
[elixir: "1.16.1", otp: "23.3"]
[elixir: "1.16.2", otp: "22.3"],
[elixir: "1.16.2", otp: "23.3"]
]
iex> Versions.matrix([], elixir: ">= 1.9.0", otp: ">= 22.0.0")
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.20",
version: "0.2.21",
elixir: "~> 1.11",
name: "GitHubActions",
description: "A little tool to write GitHub actions in Elixir",
Expand Down
6 changes: 3 additions & 3 deletions priv/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ config versions: [
"1.13.0/4",
"1.14.0/5",
"1.15.0/7",
"1.16.0/1"
"1.16.0/2"
]
],
[
Expand All @@ -127,15 +127,15 @@ config versions: [
"1.13.4",
"1.14.0/5",
"1.15.0/7",
"1.16.0/1"
"1.16.0/2"
]
],
[
otp: ["26.0/2"],
elixir: [
"1.14.5",
"1.15.0/7",
"1.16.0/1"
"1.16.0/2"
]
]
]
24 changes: 12 additions & 12 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.20
# Created with GitHubActions version 0.2.21
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -17,7 +17,7 @@ jobs:
- '1.13.4'
- '1.14.5'
- '1.15.7'
- '1.16.1'
- '1.16.2'
otp:
- '21.3'
- '22.3'
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
otp: '22.3'
- elixir: '1.15.7'
otp: '23.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '21.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '22.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '23.3'
steps:
- name: Checkout
Expand All @@ -79,28 +79,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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
24 changes: 12 additions & 12 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.20
# Created with GitHubActions version 0.2.21
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -17,7 +17,7 @@ jobs:
- '1.13.4'
- '1.14.5'
- '1.15.7'
- '1.16.1'
- '1.16.2'
otp:
- '21.3'
- '22.3'
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
otp: '22.3'
- elixir: '1.15.7'
otp: '23.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '21.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '22.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '23.3'
steps:
- name: Checkout
Expand All @@ -79,28 +79,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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.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.16.1') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
22 changes: 11 additions & 11 deletions test/fixtures/no_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- '1.13.4'
- '1.14.5'
- '1.15.7'
- '1.16.1'
- '1.16.2'
otp:
- '21.3'
- '22.3'
Expand Down Expand Up @@ -49,11 +49,11 @@ jobs:
otp: '22.3'
- elixir: '1.15.7'
otp: '23.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '21.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '22.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '23.3'
steps:
- name: Checkout
Expand All @@ -78,28 +78,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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
24 changes: 12 additions & 12 deletions test/fixtures/opt_output.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.20
# Created with GitHubActions version 0.2.21
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -17,7 +17,7 @@ jobs:
- '1.13.4'
- '1.14.5'
- '1.15.7'
- '1.16.1'
- '1.16.2'
otp:
- '21.3'
- '22.3'
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
otp: '22.3'
- elixir: '1.15.7'
otp: '23.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '21.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '22.3'
- elixir: '1.16.1'
- elixir: '1.16.2'
otp: '23.3'
steps:
- name: Checkout
Expand All @@ -79,28 +79,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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.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.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.1') && contains(matrix.otp, '26.2') }}
if: ${{ contains(matrix.elixir, '1.16.2') && contains(matrix.otp, '26.2') }}
2 changes: 1 addition & 1 deletion test/fixtures/opt_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Created with GitHubActions version 0.2.20
# Created with GitHubActions version 0.2.21
name: CI
2 changes: 1 addition & 1 deletion test/fixtures/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.16.1'
elixir-version: '1.16.2'
otp-version: '26.2'
- name: Get dependencies
run: mix deps.get
Expand Down
Loading

0 comments on commit d4bad04

Please sign in to comment.