add macro #3
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: 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 |