From db20b59292b5fd63cc3f8df85deddcc61cc77d22 Mon Sep 17 00:00:00 2001 From: Robert Dober Date: Sun, 7 Jul 2024 20:32:04 +0200 Subject: [PATCH] chore: Added the following jobs for github actions (#497) * Added the following jobs for github actions - elixir: 1.15.x otp: 25 os: ubuntu-latest warnings_as_errors: true - elixir: 1.16.x otp: 26 os: ubuntu-latest warnings_as_errors: true * Even 1.7 on 27 works (as checked with EarmarkParser) * With help from some contributers I worked out what is needed to - catch warnings in code **and** test files in newer versions - **still execute** the compile and test steps in the older versions --- .github/workflows/elixir.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index bead5d64..8f0c010c 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -24,6 +24,18 @@ jobs: otp: 25 os: ubuntu-latest warnings_as_errors: true + - elixir: 1.15.x + otp: 25 + os: ubuntu-latest + warnings_as_errors: true + - elixir: 1.16.x + otp: 26 + os: ubuntu-latest + warnings_as_errors: true + - elixir: 1.17.x + otp: 27 + os: ubuntu-latest + warnings_as_errors: true env: MIX_ENV: test steps: @@ -50,7 +62,18 @@ jobs: env: CC: gcc-10 CXX: g++-10 + - run: mix compile + if: ${{! matrix.warnings_as_errors}} + env: + CC: gcc-10 + CXX: g++-10 + - run: mix test --warnings-as-errors + if: ${{matrix.warnings_as_errors}} + env: + CC: gcc-10 + CXX: g++-10 - run: mix test + if: ${{! matrix.warnings_as_errors}} env: CC: gcc-10 CXX: g++-10