Skip to content

Commit

Permalink
Update Elixir version test matrix (open-api-spex#602)
Browse files Browse the repository at this point in the history
* Update Elixir version test matrix

* Fix map key order dependent test
  • Loading branch information
zorbash authored and Kurt committed Apr 18, 2024
1 parent 10102c6 commit 1e72a47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@ jobs:
otp: ['22', '23', '24', '25', '26']
elixir: ['1.11', '1.12', '1.13', '1.14', '1.15', '1.16']
exclude:
- {otp: '25', elixir: '1.10'}
- {otp: '22', elixir: '1.14'}
- {otp: '22', elixir: '1.15'}
- {otp: '22', elixir: '1.16'}
- {otp: '23', elixir: '1.14'}
- {otp: '23', elixir: '1.15'}
- {otp: '23', elixir: '1.16'}
- {otp: '24', elixir: '1.11'}
- {otp: '24', elixir: '1.12'}
- {otp: '24', elixir: '1.13'}
- {otp: '24', elixir: '1.14'}
- {otp: '24', elixir: '1.15'}
- {otp: '25', elixir: '1.11'}
- {otp: '25', elixir: '1.12'}
- {otp: '26', elixir: '1.10'}
- {otp: '25', elixir: '1.14'}
- {otp: '26', elixir: '1.11'}
- {otp: '26', elixir: '1.12'}
- {otp: '26', elixir: '1.13'}
Expand Down
6 changes: 4 additions & 2 deletions test/paths_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ defmodule OpenApiSpex.PathsTest do
refute Map.has_key?(paths, "/api/noapi")
refute Map.has_key?(paths, "/api/noapi_with_struct")

assert pets_path_item.put.operationId == "OpenApiSpexTest.PetController.update"
assert pets_path_item.patch.operationId == "OpenApiSpexTest.PetController.update (2)"
operation_ids = [pets_path_item.put.operationId, pets_path_item.patch.operationId]

assert "OpenApiSpexTest.PetController.update" in operation_ids
assert "OpenApiSpexTest.PetController.update (2)" in operation_ids
end
end
end

0 comments on commit 1e72a47

Please sign in to comment.