Skip to content

Commit

Permalink
Upgrade elixir (#425)
Browse files Browse the repository at this point in the history
* Upgrade elixir & erlang

* Run most special tests on most recent benchee version
  • Loading branch information
PragTob committed Feb 29, 2024
1 parent 3bcaade commit a73d4f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Thoroughly check the most recent versions
elixir_version: ['1.13.4', '1.14.5', '1.15.7', '1.16.0']
elixir_version: ['1.13.4', '1.14.5', '1.15.7', '1.16.1']
otp_version: ['23.3', '24.3', '25.3', '26.2']
# Spot check older versions
#
Expand All @@ -37,7 +37,7 @@ jobs:
exclude:
- elixir_version: '1.15.7'
otp_version: '23.3'
- elixir_version: '1.16.0'
- elixir_version: '1.16.1'
otp_version: '23.3'
- elixir_version: '1.13.4'
otp_version: '26.2'
Expand Down Expand Up @@ -65,26 +65,26 @@ jobs:
with:
path: tools/plts
key: erlef-${{ runner.os }}-dialyzer-${{ matrix.elixir_version }}-${{ matrix.otp_version }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: contains(matrix.elixir_version, '1.15')
if: contains(matrix.elixir_version, '1.16')
- run: mix deps.get
- run: MIX_ENV=test mix compile --warnings-as-errors
- run: mix credo
if: contains(matrix.elixir_version, '1.15')
if: contains(matrix.elixir_version, '1.16')
- name: Check if formatted
if: contains(matrix.elixir_version, '1.15')
if: contains(matrix.elixir_version, '1.16')
run: mix format --check-formatted
- name: Actual Tests
# this will let warnings slip through but I don't wanna replicate all that magic
# right now
run: MIX_ENV=test mix coveralls.github || mix test --failed
# Apparently the one with `!` can't go without the fancy expression syntax
if: ${{ !contains(matrix.elixir_version, '1.15') }}
if: ${{ !contains(matrix.elixir_version, '1.16') }}
- name: Actual Tests WITH warnings as errors
run: MIX_ENV=test mix coveralls.github --warnings-as-errors || mix test --failed
if: contains(matrix.elixir_version, '1.15')
if: contains(matrix.elixir_version, '1.16')
- name: Dialyzer
run: mix dialyzer --halt-exit-status
if: contains(matrix.elixir_version, '1.15')
if: contains(matrix.elixir_version, '1.16')

macos:
name: Test on MacOS
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
@@ -1,2 +1,2 @@
elixir 1.16.0-otp-26
erlang 26.2.1
elixir 1.16.1-otp-26
erlang 26.2.2

0 comments on commit a73d4f7

Please sign in to comment.