Skip to content

Commit 9a36d0d

Browse files
committed
chore+refact: adding build workflows and badges
1 parent 0ffa372 commit 9a36d0d

File tree

5 files changed

+79
-1
lines changed

5 files changed

+79
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build 1.18/otp-26
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
elixir_otp_latest:
13+
uses: ./.github/workflows/build_reusable.yml
14+
with:
15+
elixir-version: 1.18
16+
otp-version: 26
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build 1.13/otp-24
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
elixir_otp_latest:
13+
uses: ./.github/workflows/build_reusable.yml
14+
with:
15+
elixir-version: 1.13
16+
otp-version: 24
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build 1.16/otp-25
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
elixir_otp_latest:
13+
uses: ./.github/workflows/build_reusable.yml
14+
with:
15+
elixir-version: 1.16
16+
otp-version: 25
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build CI Reusable
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
elixir-version:
7+
required: true
8+
type: string
9+
otp-version:
10+
required: true
11+
type: string
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Elixir
21+
uses: erlef/setup-beam@v1
22+
with:
23+
elixir-version: ${{ inputs.elixir-version }}
24+
otp-version: ${{ inputs.otp-version }}
25+
26+
- name: Install dependencies
27+
run: mix deps.get
28+
29+
- name: Run compilation with warnings as errors
30+
run: mix compile --warnings-as-errors

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-
Online tools: [![Build Status](https://travis-ci.org/Group4Layers/ex_image_info.svg?branch=master)](https://travis-ci.org/Group4Layers/ex_image_info) [![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) [![SourceLevel](https://app.sourcelevel.io/github/Group4Layers/-/ex_image_info.svg)](https://app.sourcelevel.io/github/Group4Layers/-/ex_image_info) [![Inline docs](http://inch-ci.org/github/Group4Layers/ex_image_info.svg)](http://inch-ci.org/github/Group4Layers/ex_image_info)
9+
Online tools: [![Elixir 1.18 / OTP 26](https://github.com/Group4Layers/ex_image_info/actions/workflows/build_elixir_latest.yml/badge.svg?branch=master)](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?branch=master)](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?branch=master) [![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)