Skip to content

Commit

Permalink
Update min elixir version requirement and test version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
polmuz committed Aug 31, 2024
1 parent e497c7e commit 7de23e9
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 34 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Tests

on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
name: Erlang/OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}

strategy:
matrix:
elixir: [1.15, 1.16, 1.17]
otp: [24, 25, 26, 27]
exclude:
- elixir: 1.15
otp: 27
- elixir: 1.16
otp: 27
- elixir: 1.17
otp: 24


steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

- name: Install dependencies
run: mix deps.get

- name: Run tests
run: mix test
41 changes: 12 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
language: elixir
elixir:
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.15
- 1.16
- 1.17
otp_release:
- 20.3
- 21.3
- 22.3
- 23.0
- 24.0
- 24
- 25
- 26
- 27

matrix:
exclude:
- elixir: 1.8
opt_release: 23.0
- elixir: 1.8
- elixir: 1.15
opt_release: 27.0
- elixir: 1.16
opt_release: 27.0
- elixir: 1.17
opt_release: 24.0
- elixir: 1.9
opt_release: 23.0
- elixir: 1.9
opt_release: 24.0
- elixir: 1.10
opt_release: 20.3
- elixir: 1.10
opt_release: 23.0
- elixir: 1.10
opt_release: 24.0
- elixir: 1.11
opt_release: 20.3
- elixir: 1.12
opt_release: 20.3
- elixir: 1.12
opt_release: 21.3
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Dan Janowski (danj3)
David Jeusette (djeusette)
SergeTupchiy
Kian Meng Ang (kianmeng)
Thomas Cioppettini (tomciopp)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Geohash

[![Build Status](https://travis-ci.org/polmuz/elixir-geohash.svg?branch=master)](https://travis-ci.org/polmuz/elixir-geohash)
![Tests Status](https://github.com/polmuz/elixir-geohash/actions/workflows/tests.yml/badge.svg)
[![Module Version](https://img.shields.io/hexpm/v/geohash.svg)](https://hex.pm/packages/geohash)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/geohash/)
[![Total Download](https://img.shields.io/hexpm/dt/geohash.svg)](https://hex.pm/packages/geohash)
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ defmodule Geohash.Mixfile do
use Mix.Project

@source_url "https://github.com/polmuz/elixir-geohash"
@version "1.2.2"
@version "1.3.0"

def project do
[
app: :geohash,
version: @version,
elixir: "~> 1.8",
elixir: "~> 1.15",
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down
4 changes: 2 additions & 2 deletions test/geohash_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule GeohashTest do
assert Geohash.decode("ww8p1r4t8") == {37.832386, 112.558386}
assert Geohash.decode("ezs42") == {42.605, -5.603}
assert Geohash.decode("u4pruy") == {57.648, 10.410}
assert Geohash.decode('6gkzwgjz') == {-25.38262, -49.26561}
assert Geohash.decode(~c"6gkzwgjz") == {-25.38262, -49.26561}
end

test "Geohash.neighbors" do
Expand All @@ -65,7 +65,7 @@ defmodule GeohashTest do
assert Geohash.adjacent("ww8p1r4t8", "e") == "ww8p1r4t9"
end

@geobase32 '0123456789bcdefghjkmnpqrstuvwxyz'
@geobase32 ~c"0123456789bcdefghjkmnpqrstuvwxyz"

defp geocodes_domain,
do: StreamData.list_of(StreamData.member_of(@geobase32), min_length: 1, max_length: 12)
Expand Down

0 comments on commit 7de23e9

Please sign in to comment.