Skip to content

Commit 9672deb

Browse files
authored
Merge pull request #15 from Group4Layers/ex-1.18-warnings
Prepare code for Elixir 1.18
2 parents 053bf5d + ad17add commit 9672deb

36 files changed

+209
-1784
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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ' ' suffix for the badge status
2+
name: "Build 1.18/27 "
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
elixir_otp_latest:
14+
uses: ./.github/workflows/build_reusable.yml
15+
with:
16+
elixir-version: 1.18
17+
otp-version: 27
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ' ' suffix for the badge status
2+
name: "Build 1.14/25 "
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
elixir_otp_latest:
14+
uses: ./.github/workflows/build_reusable.yml
15+
with:
16+
elixir-version: 1.14.5
17+
otp-version: 25
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ' ' suffix for the badge status
2+
name: "Build 1.16/26 "
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
elixir_otp_latest:
14+
uses: ./.github/workflows/build_reusable.yml
15+
with:
16+
elixir-version: 1.16
17+
otp-version: 26
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

.github/workflows/ci.yml

Lines changed: 13 additions & 7 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"]
17+
os: ["ubuntu-22.04"]
18+
elixir: ["1.16", "1.18"]
1919
otp: ["26"]
2020
steps:
2121
- uses: actions/checkout@v3
@@ -40,11 +40,17 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
os: ["ubuntu-20.04"]
44-
elixir: ["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"
47+
- elixir: "1.18"
48+
otp: "25"
49+
- elixir: "1.16"
50+
otp: "27"
51+
- elixir: "1.14.5"
52+
otp: "27"
53+
- elixir: "1.14.5"
4854
otp: "26"
4955
steps:
5056
- uses: actions/checkout@v3
@@ -59,5 +65,5 @@ jobs:
5965
restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_
6066
- run: mix deps.get --only test
6167
- run: mix deps.compile
62-
- run: mix compile
68+
- run: mix compile --warnings-as-errors
6369
- run: mix test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ anaconda-mode/
9393
# for gh-pages
9494
!dist/
9595
/docs/all.json
96+
/docs/
97+
/.idea/

.sourcelevel.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elixir 1.18.2-otp-27
2+
erlang 27.2.3

CHANGELOG.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,51 @@
11
# CHANGELOG
22

3+
## v0.2.7 (2025-03-05)
4+
5+
**Enhancements:**
6+
7+
- Support for Elixir 1.18 (removing warnings).
8+
9+
**News:**
10+
11+
- Removed GitHub pages (/docs/) as hexdocs.pm is the official documentation site.
12+
- Bumping versions to all dev/test dependencies.
13+
- Improving CI pipelines and fixing HTML-generated docs (badges).
14+
- Removing unneeded docs tasks.
15+
16+
**Acknowledgments:**
17+
18+
- Andrew Bruce (@camelpunch) for notifying about 1.18 warnings and starting as a reviewer.
19+
20+
## v0.2.6 (2024-01-18)
21+
22+
**Enhancements:**
23+
24+
- Improving a parsing case for the PNM format. If its signature is not fully formed, it skips parsing the size.
25+
26+
**News:**
27+
28+
- Adding `styler` to format and solve credo styling issues automatically.
29+
30+
## v0.2.5 (2024-06-09)
31+
32+
**News:**
33+
34+
- Added CI pipelines (test, lint, build).
35+
- Formatting code with `mix format`.
36+
- Bumping versions to all dev/test dependencies.
37+
38+
**Types:**
39+
40+
- Rest case for `seems?/2` returns a boolean (`false`) instead of `nil`.
41+
42+
**Acknowledgments:**
43+
44+
- Matthew Johnston (@warmwaffles) for all these changes and starting as a reviewer/contributor.
45+
346
## v0.2.4 (2018-11-24)
447

5-
**Enhancements**
48+
**Enhancements:**
649

750
- By request of a GitHub user: support for another variant of webp
851
- Studied and integrated the webpVP8X format (bitstream animated)

0 commit comments

Comments
 (0)