Skip to content

Commit

Permalink
chore: Added the following jobs for github actions (#497)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RobertDober authored Jul 7, 2024
1 parent fb81280 commit db20b59
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit db20b59

Please sign in to comment.