Skip to content

Commit 4699d88

Browse files
authored
Bump Elixir requirement to 1.7+ (#14)
1 parent d92be75 commit 4699d88

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ on:
99
jobs:
1010
test:
1111
name: Test (Elixir ${{ matrix.elixir }}, OTP ${{ matrix.erlang }})
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-20.04
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- erlang: "25.0"
18-
elixir: "1.13"
17+
- erlang: "25.3"
18+
elixir: "1.14.2"
1919
lint: true
2020
coverage: true
21-
- erlang: "18.3"
22-
elixir: "1.5.3"
21+
- erlang: "20.3"
22+
elixir: "1.7.4"
2323

2424
env:
2525
MIX_ENV: test
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

2828
steps:
2929
- uses: actions/checkout@v1
3030

31-
- name: Install OTP and Elixir
32-
uses: erlef/setup-elixir@v1
31+
- name: Install Erlang and Elixir
32+
uses: erlef/setup-beam@v1
3333
with:
34-
otp-version: ${{matrix.erlang}}
35-
elixir-version: ${{matrix.elixir}}
34+
otp-version: ${{ matrix.erlang }}
35+
elixir-version: ${{ matrix.elixir }}
3636

3737
- name: Install dependencies
3838
run: mix deps.get --only test, deps.compile
@@ -53,23 +53,23 @@ jobs:
5353

5454
- name: Check formatting
5555
run: mix format --check-formatted
56-
if: ${{matrix.lint}}
56+
if: ${{ matrix.lint }}
5757

5858
- name: Check for unused dependencies
5959
run: mix do deps.get, deps.unlock --check-unused
60-
if: ${{matrix.lint}}
60+
if: ${{ matrix.lint }}
6161

6262
- name: Compile with --warnings-as-errors
6363
run: mix compile --warnings-as-errors
64-
if: ${{matrix.lint}}
64+
if: ${{ matrix.lint }}
6565

6666
- name: Run tests
6767
run: mix test --trace
68-
if: ${{!matrix.coverage}}
68+
if: ${{ !matrix.coverage }}
6969

7070
- name: Run tests with coverage
7171
run: mix coveralls.github --trace
72-
if: ${{matrix.coverage}}
72+
if: ${{ matrix.coverage }}
7373

7474
- name: Run Dialyzer
7575
run: mix dialyzer

lib/hpax.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ defmodule HPAX do
134134
#=> {iodata, updated_encoding_context}
135135
136136
"""
137-
# TODO: remove once we depend on Elixir 1.7+.
138-
if Version.match?(System.version(), ">= 1.7.0") do
139-
@doc since: "0.2.0"
140-
end
141-
137+
@doc since: "0.2.0"
142138
@spec encode(action, [header], Table.t()) :: {iodata(), Table.t()}
143139
when action: :store | :store_name | :no_store | :never_store,
144140
header: {header_name(), header_value()}

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule HPAX.MixProject do
88
[
99
app: :hpax,
1010
version: @version,
11-
elixir: "~> 1.5",
11+
elixir: "~> 1.7",
1212
start_permanent: Mix.env() == :prod,
1313
deps: deps(),
1414

0 commit comments

Comments
 (0)