Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 11 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,24 @@ on:
- pull_request
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.6
otp: 20.3
- elixir: 1.8.2
otp: 21.3
- elixir: 1.9.4
otp: 22.2
- elixir: 1.10.4
otp: 23.0
- elixir: 1.13.0
otp: 24.1
- elixir: 1.14.0
otp: 25.0
- elixir: 1.16.0
otp: 26.0
- elixir: 1.12
otp: 24
- elixir: 1.14
otp: 25
- elixir: 1.15
otp: 25
- elixir: 1.17
otp: 27
- elixir: 1.18
otp: 27
check_warnings: true
check_format: true
dialyzer: true
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
Expand All @@ -42,21 +37,3 @@ jobs:
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Restore PLT cache
uses: actions/cache@v4
if: ${{ matrix.dialyzer }}
id: plt_cache
with:
key: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plt
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plt
path: |
priv/plts
# Create PLTs if no cache was found
- name: Create PLTs
if: ${{ matrix.dialyzer && steps.plt_cache.outputs.cache-hit != 'true' }}
run: mix dialyzer --plt
- name: Run dialyzer
if: ${{ matrix.dialyzer }}
run: mix dialyzer
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Types of changes:


## [Unreleased] - yyyy-mm-dd
- Drop support for Elixir < 1.12

## [0.6.6] - 2025-03-29

Expand Down
8 changes: 1 addition & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Zstream.Mixfile do
[
app: :zstream,
version: @version,
elixir: "~> 1.6",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
description: "Streaming zip file writer and reader",
package: package(),
Expand All @@ -17,11 +17,6 @@ defmodule Zstream.Mixfile do
preferred_cli_env: [
"coveralls.json": :test
],
dialyzer: [
plt_add_deps: :apps_direct,
flags: [:unmatched_returns, :error_handling, :underspecs],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
deps: deps()
]
end
Expand All @@ -36,7 +31,6 @@ defmodule Zstream.Mixfile do
[
{:temp, "~> 0.4", only: :test, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test}
]
end
Expand Down
3 changes: 1 addition & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
nativeBuildInputs =
[ pkgs.beam.packages.erlang_26.elixir_1_16 ];
nativeBuildInputs = [ pkgs.beam.packages.erlang_27.elixir_1_18 ];
}
Loading