diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d93bdfc..f5540368 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,22 +5,20 @@ on: [push, pull_request] jobs: test: name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) - runs-on: ubuntu-16.04 + runs-on: ubuntu-18.04 strategy: fail-fast: false matrix: include: - otp: 24.0 elixir: 1.12.1 - lint: true integration: true - otp: 23.3 elixir: 1.11.4 lint: true + integration: true - otp: 23.3 elixir: 1.10.4 - - otp: 22.3 - elixir: 1.10.4 - otp: 22.3 elixir: 1.9.4 env: @@ -37,12 +35,17 @@ jobs: - name: Install dependencies run: mix deps.get --only test - - name: Check no unused dependencies + - name: Check for unused dependencies run: mix deps.get && mix deps.unlock --check-unused if: ${{matrix.lint}} - - name: Compile dependencies - run: mix deps.compile + - name: Compile with --warnings-as-errors + run: mix compile --warnings-as-errors + if: ${{matrix.lint}} + + - name: Check mix format + run: mix format --check-formatted + if: ${{matrix.lint}} - name: Run tests run: mix test --trace diff --git a/lib/protobuf/protoc/generator/message.ex b/lib/protobuf/protoc/generator/message.ex index 821bea1c..e42e9c20 100644 --- a/lib/protobuf/protoc/generator/message.ex +++ b/lib/protobuf/protoc/generator/message.ex @@ -115,7 +115,6 @@ defmodule Protobuf.Protoc.Generator.Message do {fmt_type_name(f.name, longest_width), "{atom, any}"} end) - types = types ++ Enum.map(fields, fn f ->