Skip to content

Commit

Permalink
chore: support elixir 1.17-otp-27
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed Sep 19, 2024
1 parent bc15adf commit abf7b47
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,38 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
otp_version: ['24', '25', '26']
elixir_version: ['1.14', '1.15', '1.16']
version: [
{ elixir: '1.14', otp: '23' },
{ elixir: '1.14', otp: '24' },
{ elixir: '1.14', otp: '25' },
{ elixir: '1.15', otp: '24' },
{ elixir: '1.15', otp: '25' },
{ elixir: '1.15', otp: '26' },
{ elixir: '1.16', otp: '24' },
{ elixir: '1.16', otp: '25' },
{ elixir: '1.16', otp: '26' },
{ elixir: '1.17', otp: '25' },
{ elixir: '1.17', otp: '26' },
{ elixir: '1.17', otp: '27' }
]
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir_version }}
otp-version: ${{ matrix.version.otp }}
elixir-version: ${{ matrix.version.elixir }}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-otp-${{ matrix.otp_version }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ matrix.otp_version }}-mix-
key: ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-
- name: Install dependencies
run: mix do deps.get, deps.compile
- name: Run tests
run: mix test --cover
- uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: elixir-${{ matrix.elixir_version }},otp-${{ matrix.otp_version }}
flags: elixir-${{ matrix.version.elixir }},otp-${{ matrix.version.otp }}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def project do
# don't do this:
clean: "deps.unlock --unused",

# do this:
# do this:
clean: ["clean", "deps.unlock --unused"],
],
#
Expand Down Expand Up @@ -107,7 +107,7 @@ def project do
#
unused: [
checks: [
# find public functions that could be private
# find public functions that could be private
MixUnused.Analyzers.Private,
# find unused public functions
MixUnused.Analyzers.Unused,
Expand All @@ -127,8 +127,6 @@ end
It supports the following options:

- `checks`: list of analyzer modules to use.
In alternative to the default set, you can use the [MixUnused.Analyzers.Unreachable](`MixUnused.Analyzers.Unreachable`)
check (see the specific [guide](guides/unreachable-analyzer.md)).

- `ignore`: list of ignored functions, example:

Expand Down

0 comments on commit abf7b47

Please sign in to comment.