Skip to content

Update dependencies #33

Update dependencies

Update dependencies #33

Workflow file for this run

name: Code Quality
on:
pull_request:
push:
branches:
- master
- test
tags:
- '*'
workflow_dispatch:
jobs:
quality_actions:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: yamllint .
working-directory: .github
quality_elixir:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: setup
id: setup
uses: erlef/setup-beam@v1
with:
elixir-version: '1.16.2'
otp-version: '26.2'
- name: mix-cache
uses: actions/cache@v4
id: mix-cache
with:
path: deps
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ steps.setup.outputs.otp-version }}-${{ steps.setup.outputs.elixir-version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: mix-deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: check unused deps
run: mix deps.unlock --check-unused
- name: check for compiler warnings
run: |
mix deps.compile
mix compile --warnings-as-errors
- name: format
run: mix format --check-formatted
- name: credo
run: mix credo --strict