From 54e1376f1c0cf48d01892533d2c371012802c560 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 7 Aug 2024 21:45:53 +0800 Subject: [PATCH] CI housekeeping List of changes: - add CI badge to README - add Elixir 1.17.x / Erlang 27.x to CI support matrix - bump actions/cache due to Node.js depreciation - check formatting only on latest Elixir/Erlang pair --- .github/workflows/test.yml | 67 ++++++++++++++++++++++++++------------ README.md | 1 + 2 files changed, 48 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3b38ad..6fa057a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,31 +34,58 @@ jobs: fail-fast: false matrix: elixir: - - '1.12.3' - - '1.13.4' - - '1.14.3' - - '1.15.7' + - 1.12.3 + - 1.13.4 + - 1.14.3 + - 1.15.7 + - 1.16.3 + - 1.17.2 otp: - - '23.3' - - '24.3' - - '25.3' - - '26.1' + - 23.3 + - 24.3 + - 25.3 + - 26.1 + - 27.0 exclude: - - elixir: '1.12.3' - otp: '25.3' + - elixir: 1.12.3 + otp: 25.3 - - elixir: '1.12.3' - otp: '26.1' + - elixir: 1.12.3 + otp: 26.1 - - elixir: '1.13.4' - otp: '26.1' + - elixir: 1.12.3 + otp: 27.0 - - elixir: '1.14.3' - otp: '26.1' + - elixir: 1.13.4 + otp: 26.1 - - elixir: '1.15.7' - otp: '23.3' + - elixir: 1.13.4 + otp: 27.0 + + - elixir: 1.14.3 + otp: 26.1 + + - elixir: 1.14.3 + otp: 27.0 + + - elixir: 1.15.7 + otp: 23.3 + + - elixir: 1.15.7 + otp: 27.0 + + - elixir: 1.16.3 + otp: 23.3 + + - elixir: 1.16.3 + otp: 27.0 + + - elixir: 1.17.2 + otp: 23.3 + + - elixir: 1.17.2 + otp: 24.3 steps: - name: Checkout @@ -71,7 +98,7 @@ jobs: otp-version: ${{ matrix.otp }} - name: Restore deps cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | deps @@ -101,7 +128,7 @@ jobs: MIX_ENV: prod - name: Check source code formatting - if: ${{ matrix.elixir > '1.15.0' }} + if: ${{ matrix.elixir == '1.17.2' && matrix.otp == '27.0' }} run: mix format --check-formatted - name: Get results in short format diff --git a/README.md b/README.md index d5a27cb..53934f3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Dialyxir +[![CI](https://github.com/jeremyjh/dialyxir/actions/workflows/test.yml/badge.svg)](https://github.com/jeremyjh/dialyxir/actions/workflows/test.yml) [![Module Version](https://img.shields.io/hexpm/v/dialyxir.svg)](https://hex.pm/packages/dialyxir) [![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/dialyxir/) [![Total Download](https://img.shields.io/hexpm/dt/dialyxir.svg)](https://hex.pm/packages/dialyxir)