Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions .github/workflows/elixir.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Elixir CI
name: CI

on:
push:
Expand All @@ -15,29 +15,43 @@ permissions:
contents: read

jobs:
build:
tests:

name: build and test
runs-on: ubuntu-latest
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.19.5"
otp: "28.3.1"
- elixir: "1.17.3"
otp: "27.3.4.7"
- elixir: "1.13.4"
otp: "25.3.2.21"

steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1.20.4
with:
otp-version: 28.3.1
elixir-version: 1.19.5
- name: Restore dependencies cache
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps and _build cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix coveralls.github
run: make test-code
- name: Check code
run: make analyze-code
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.PHONY: test-code
test-code:
mix cover.lint
mix coveralls.github

.PHONY: analyze-code
analyze-code:
Expand Down
7 changes: 2 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule ModuleResolver.MixProject do
[
app: :module_resolver,
version: "0.1.0",
elixir: "~> 1.12",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
Expand Down Expand Up @@ -60,10 +60,7 @@ defmodule ModuleResolver.MixProject do
[
preferred_envs: [
cover: :test,
"cover.detail": :test,
"cover.html": :test,
"cover.filter": :test,
"cover.lint": :test,
"coveralls.github": :test,
credo: :test,
dialyzer: :test
]
Expand Down
Loading