Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

fix: minor refactorings #14

fix: minor refactorings

fix: minor refactorings #14

Workflow file for this run

name: ex_ucan CI
on:
push:
pull_request:
release:
types: [published]
env:
MIX_ENV: test
jobs:
build_test:
name: Build and test
runs-on: ubuntu-22.04
strategy:
matrix:
elixir: [1.15.7]
otp: [26.0.2]
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
otp-version: ${{matrix.otp}} # Define the OTP version [required]
experimental-otp: true
- name: Retrieve Mix dependencies Cache
uses: actions/cache@v1
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Credo
run: mix credo --strict
- name: Run tests
run: |
mix test