Skip to content

Commit 0f6ee3a

Browse files
committed
ci+docs: bumping CI matrix versions and badges
1 parent b641611 commit 0f6ee3a

File tree

6 files changed

+61
-16
lines changed

6 files changed

+61
-16
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build CI
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
name: Build as in prod
13+
env:
14+
MIX_ENV: prod
15+
strategy:
16+
matrix:
17+
os: ["ubuntu-22.04"]
18+
elixir: ["1.18", "1.16", "1.14.5"]
19+
otp: ["27", "26", "25"]
20+
exclude:
21+
- elixir: "1.18"
22+
otp: "25"
23+
- elixir: "1.16"
24+
otp: "27"
25+
- elixir: "1.14.5"
26+
otp: "27"
27+
- elixir: "1.14.5"
28+
otp: "26"
29+
steps:
30+
- uses: actions/checkout@v3
31+
- uses: erlef/setup-beam@v1
32+
with:
33+
otp-version: ${{ matrix.otp }}
34+
elixir-version: ${{ matrix.elixir }}
35+
- uses: actions/cache@v3
36+
with:
37+
path: deps
38+
key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }}
39+
restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_
40+
- run: mix deps.get
41+
- run: mix compile --warnings-as-errors

.github/workflows/build_elixir_latest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ' ' suffix for the badge status
2-
name: "Build 1.18/26 "
2+
name: "Build 1.18/27 "
33

44
on:
55
push:
@@ -14,4 +14,4 @@ jobs:
1414
uses: ./.github/workflows/build_reusable.yml
1515
with:
1616
elixir-version: 1.18
17-
otp-version: 26
17+
otp-version: 27

.github/workflows/build_elixir_old.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ' ' suffix for the badge status
2-
name: "Build 1.13/24 "
2+
name: "Build 1.14/25 "
33

44
on:
55
push:
@@ -13,5 +13,5 @@ jobs:
1313
elixir_otp_latest:
1414
uses: ./.github/workflows/build_reusable.yml
1515
with:
16-
elixir-version: 1.13
17-
otp-version: 24
16+
elixir-version: 1.14.5
17+
otp-version: 25

.github/workflows/build_elixir_recent.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ' ' suffix for the badge status
2-
name: "Build 1.16/25 "
2+
name: "Build 1.16/26 "
33

44
on:
55
push:
@@ -14,4 +14,4 @@ jobs:
1414
uses: ./.github/workflows/build_reusable.yml
1515
with:
1616
elixir-version: 1.16
17-
otp-version: 25
17+
otp-version: 26

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
name: Lint
1515
strategy:
1616
matrix:
17-
os: ["ubuntu-20.04"]
18-
elixir: ["1.15", "1.18"]
17+
os: ["ubuntu-22.04"]
18+
elixir: ["1.16", "1.18"]
1919
otp: ["26"]
2020
steps:
2121
- uses: actions/checkout@v3
@@ -40,14 +40,18 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
os: ["ubuntu-20.04"]
44-
elixir: ["1.18", "1.16", "1.15", "1.14", "1.13"]
45-
otp: ["26", "25", "24"]
43+
os: ["ubuntu-22.04"]
44+
elixir: ["1.18", "1.16", "1.14.5"]
45+
otp: ["27", "26", "25"]
4646
exclude:
47-
- elixir: "1.13"
48-
otp: "26"
4947
- elixir: "1.18"
50-
otp: "24"
48+
otp: "25"
49+
- elixir: "1.16"
50+
otp: "27"
51+
- elixir: "1.14.5"
52+
otp: "27"
53+
- elixir: "1.14.5"
54+
otp: "26"
5155
steps:
5256
- uses: actions/checkout@v3
5357
- uses: erlef/setup-beam@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
ExImageInfo is an Elixir library to parse images (binaries) and get the dimensions (size), detected mime-type and overall validity for a set of image formats. It is the fastest and supports multiple formats.
88

9-
Status: [![Elixir 1.18 / OTP 26](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_latest.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_latest.yml) [![Elixir 1.16 / OTP 25](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_recent.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_recent.yml) [![Elixir 1.13 / OTP 24](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_old.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_old.yml) [![Coverage Status](https://coveralls.io/repos/github/Group4Layers/ex_image_info/badge.svg?branch=master)](https://coveralls.io/github/Group4Layers/ex_image_info?branch=master) [![Inline docs](http://inch-ci.org/github/Group4Layers/ex_image_info.svg)](http://inch-ci.org/github/Group4Layers/ex_image_info)
9+
Status: [![Elixir 1.18 / OTP 27](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_latest.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_latest.yml) [![Elixir 1.16 / OTP 26](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_recent.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_recent.yml) [![Elixir 1.14 / OTP 25](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_old.yml/badge.svg)](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_old.yml) [![Coverage Status](https://coveralls.io/repos/github/Group4Layers/ex_image_info/badge.svg?branch=master)](https://coveralls.io/github/Group4Layers/ex_image_info?branch=master) [![Inline docs](http://inch-ci.org/github/Group4Layers/ex_image_info.svg)](http://inch-ci.org/github/Group4Layers/ex_image_info)
1010

1111
### [GitHub repo](https://github.com/Group4Layers/ex_image_info)    [Docs](https://group4layers.github.io/ex_image_info)    [Hex.pm package](https://hex.pm/packages/ex_image_info)
1212

0 commit comments

Comments
 (0)