From 6bf15a6972848f456ec92b9882be10be6b99b7e4 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 27 Jun 2024 00:37:37 +0800 Subject: [PATCH] CI housekeeping See https://hexdocs.pm/elixir/1.17.1/compatibility-and-deprecations.html List of changes: - use Erlang (22 and 27) and Elixit (1.13 and 1.17) in GitHub CI. - add related CI and Hex badges - set minimum Elixir version to 1.13 --- .github/workflows/ci.yml | 10 +++++----- README.md | 4 +++- mix.exs | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8e8d82..db05a4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,14 @@ jobs: matrix: include: - pair: - elixir: 1.12.3 - otp: 23.3 + elixir: 1.13.4 + otp: 22.3 - pair: - elixir: 1.15.7 - otp: 26.1 + elixir: 1.17.1 + otp: 27.0 lint: lint steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: diff --git a/README.md b/README.md index 40f1ee5..13bf065 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # NimbleParsec -[Online Documentation](https://hexdocs.pm/nimble_parsec). +[![CI](https://github.com/dashbitco/nimble_parsec/actions/workflows/ci.yml/badge.svg)](https://github.com/dashbitco/nimble_parsec/actions/workflows/ci.yml) +[![Module Version](https://img.shields.io/hexpm/v/nimble_parsec.svg)](https://hex.pm/packages/nimble_parsec) +[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/nimble_parsec) diff --git a/mix.exs b/mix.exs index 3bb1cb6..853bc81 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule NimbleParsec.MixProject do [ app: :nimble_parsec, version: @version, - elixir: "~> 1.12", + elixir: "~> 1.13", name: "NimbleParsec", description: "A simple and fast library for text-based parser combinators", aliases: [docs: &build_docs/1],