Skip to content

Commit

Permalink
CI housekeeping
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kianmeng committed Aug 7, 2024
1 parent a733acf commit 54e1376
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 20 deletions.
67 changes: 47 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -71,7 +98,7 @@ jobs:
otp-version: ${{ matrix.otp }}

- name: Restore deps cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
deps
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 54e1376

Please sign in to comment.