This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
fix: minor #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5] | |
otp: [26.0.2] | |
steps: | |
- 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 |