Skip to content

add macro

add macro #3

Workflow file for this run

name: Quality
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
OTP_VERSION: "26"
ELIXIR_VERSION: "1.15"
jobs:
credo:
name: Credo
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Cache deps
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-deps-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-deps-
- name: Cache build
uses: actions/cache@v4
with:
path: _build
key: ${{ runner.os }}-mix-build-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-build-
- name: Install Dependencies
run: mix deps.get
- name: Run Credo
run: mix credo