Skip to content

Commit 6458b2d

Browse files
committed
Update deps and CI
1 parent 0036256 commit 6458b2d

File tree

3 files changed

+60
-61
lines changed

3 files changed

+60
-61
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,37 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
format:
7-
name: Format and compile with warnings as errors
8-
runs-on: ubuntu-latest
6+
test:
7+
runs-on: ubuntu-20.04
8+
env:
9+
MIX_ENV: test
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- pair:
15+
elixir: "1.13"
16+
otp: "24.3.4.10"
17+
- pair:
18+
elixir: "1.15"
19+
otp: "26.0"
920
steps:
10-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
1122

1223
- name: Install OTP and Elixir
1324
uses: erlef/setup-beam@v1
1425
with:
15-
otp-version: 24.1
16-
elixir-version: 1.12.3
26+
otp-version: ${{matrix.pair.otp}}
27+
elixir-version: ${{matrix.pair.elixir}}
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v3
31+
with:
32+
path: deps
33+
key: mix-deps-${{ hashFiles('**/mix.lock') }}
34+
35+
- name: Check unused dependencies
36+
run: mix deps.unlock --check-unused
1737

1838
- name: Install dependencies
1939
run: mix deps.get
@@ -24,28 +44,5 @@ jobs:
2444
- name: Compile with --warnings-as-errors
2545
run: mix compile --warnings-as-errors
2646

27-
test:
28-
name: Test
29-
runs-on: ubuntu-latest
30-
strategy:
31-
fail-fast: false
32-
matrix:
33-
include:
34-
- erlang: 24.1
35-
elixir: 1.12.3
36-
- erlang: 24.1
37-
elixir: 1.13.0
38-
steps:
39-
- uses: actions/checkout@v2
40-
41-
- name: Install OTP and Elixir
42-
uses: erlef/setup-elixir@v1
43-
with:
44-
otp-version: ${{matrix.erlang}}
45-
elixir-version: ${{matrix.elixir}}
46-
47-
- name: Install dependencies
48-
run: mix deps.get
49-
5047
- name: Run tests
5148
run: mix test --trace

mix.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule HTTPClient.MixProject do
99
[
1010
app: :http_client,
1111
version: @version,
12-
elixir: "~> 1.12",
12+
elixir: "~> 1.13",
1313
description: "Facade for HTTP client.",
1414
docs: docs(),
1515
start_permanent: Mix.env() == :prod,
@@ -29,15 +29,15 @@ defmodule HTTPClient.MixProject do
2929
defp deps do
3030
[
3131
{:nimble_options, "~> 0.4"},
32-
{:httpoison, "~> 1.8"},
33-
{:finch, "~> 0.11"},
32+
{:httpoison, "~> 2.1"},
33+
{:finch, "~> 0.16"},
3434
{:telemetry, "~> 1.0"},
35-
{:jason, "~> 1.3"},
36-
{:mime, "~> 1.6 or ~> 2.0"},
37-
{:plug, "~> 1.12", only: :test, override: true},
38-
{:plug_cowboy, "~> 2.5", only: :test, override: true},
35+
{:jason, "~> 1.4"},
36+
{:mime, "~> 2.0"},
37+
{:plug, "~> 1.14", only: :test, override: true},
38+
{:bandit, "~> 1.0-pre", only: :test, override: true},
3939
{:bypass, "~> 2.1", only: :test},
40-
{:ex_doc, "~> 0.27.3", only: :dev, runtime: false}
40+
{:ex_doc, "~> 0.30", only: :dev, runtime: false}
4141
]
4242
end
4343

0 commit comments

Comments
 (0)