Skip to content

Test warnings as errors#3

Draft
mpmiszczyk wants to merge 5 commits into
freshaengineering:masterfrom
mpmiszczyk:test-warnings-as-errors
Draft

Test warnings as errors#3
mpmiszczyk wants to merge 5 commits into
freshaengineering:masterfrom
mpmiszczyk:test-warnings-as-errors

Conversation

@mpmiszczyk

Copy link
Copy Markdown
Contributor

No description provided.

@mpmiszczyk

Copy link
Copy Markdown
Contributor Author

@kamilkowalski kamilkowalski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for contributing, sorry I didn't see it before - I'll enable watching this repo from now on. I left some comments, let me know what you think.

Comment thread .github/workflows/ci.yml
mix_compile:
name: Compile (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
runs-on: ubuntu-latest
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I recommend using the erlef/setup-elixir action instead - it sets up rebar and hex for you and is the official action that sets up Elixir. Plus I think GH Actions are faster when not containerized, but that might be anecdata. Here's an example that worked for me: https://github.com/elixir-grpc/grpc/pull/189/files

:modular
|> Application.fetch_env!(:areas)
|> Enum.filter(&Code.ensure_compiled?/1)
|> Enum.filter(fn area -> Code.ensure_compiled(area) == {:module, area} end)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We've just changed this code, can you pull the origin?

@mpmiszczyk mpmiszczyk marked this pull request as draft October 23, 2022 23:10
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.

2 participants