Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI pipeline #377

Merged
merged 57 commits into from
May 23, 2022
Merged

Conversation

lucacorti
Copy link
Contributor

@lucacorti lucacorti commented Jul 24, 2021

Hi,

This improves the CI pipeline by:

  • testing on more combinations of Elixir and erlang runtimes.
  • separating linting and testing, since the formatter, warnings and other checks can run once on the last version and can't possibly pass for every combination.
  • adding dialyzer
  • adding credo
  • adding caching to speed up subsequent runs

I also fixed what appears to be a bug (null description in controller operation) while at it.

@lucacorti lucacorti marked this pull request as draft July 24, 2021 19:02
@lucacorti lucacorti force-pushed the feature/improve-ci branch 2 times, most recently from b38afa3 to 386eb3a Compare July 24, 2021 19:25
@lucacorti lucacorti marked this pull request as ready for review July 24, 2021 19:42
@lucacorti lucacorti changed the title Feature/improve ci Improve CI pipeline Jul 24, 2021
@lucacorti lucacorti force-pushed the feature/improve-ci branch from 8b87f1d to df6fd5d Compare August 2, 2021 09:38
@lucacorti
Copy link
Contributor Author

@mbuhot I've reverted the changes and put together a minimal set to make credo pass. I've also disabled the problematic style check. Let me know if this looks acceptable to you.

@lucacorti lucacorti requested a review from mbuhot August 2, 2021 10:45
@lucacorti lucacorti force-pushed the feature/improve-ci branch from 3fa4fe9 to 40fca1c Compare April 1, 2022 19:40
@lucacorti
Copy link
Contributor Author

I've rebased this to latest master and updated CI. Thoughts?

Copy link
Contributor

@zorbash zorbash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -193,7 +193,7 @@ defmodule OpenApiSpex.Plug.SwaggerUI do
end

defp supplement_config(%{oauth2_redirect_url: {:endpoint_url, path}} = config, conn) do
endpoint_module = apply(Phoenix.Controller, :endpoint_module, [conn])
endpoint_module = Phoenix.Controller.endpoint_module(conn)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this compile in prod env? OpenApiSpex should work in plain plug projects that don't use phoenix.

@mbuhot mbuhot merged commit cdb4461 into open-api-spex:master May 23, 2022
@lucacorti lucacorti deleted the feature/improve-ci branch July 31, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants