Skip to content

Tweaks and adjustments to modernize this repo #56

Tweaks and adjustments to modernize this repo

Tweaks and adjustments to modernize this repo #56

Workflow file for this run

name: Elixir CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
matrix:
elixir: [1.18.4]
otp: [28.0.2]
steps:
- uses: actions/checkout@v4
- name: System Dependencies
run: |
sudo apt update
sudo apt install -y inotify-tools
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}-
- name: Install dependencies
run: mix deps.get
- name: Check code format
run: mix format --check-formatted
- name: Run static analysis
run: mix credo --strict
- name: Check for unneeded dependencies
run: mix deps.unlock --check-unused
- name: Run tests
run: mix test