Merge pull request #161 from Cantido/dependabot/hex/credo-1.7.10 #346
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
# SPDX-FileCopyrightText: 2024 Rosa Richter | |
# | |
# SPDX-License-Identifier: MIT | |
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
FORCE_COLOR: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: 1.17 | |
otp-version: 27 | |
- name: Restore dependencies cache | |
uses: actions/cache@v4 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: mix test | |
- name: Run credo | |
run: mix credo list | |
test-unlocked: | |
runs-on: ubuntu-latest | |
env: | |
FORCE_COLOR: 1 | |
strategy: | |
matrix: | |
include: | |
- elixir-version: 1.17 | |
otp-version: 27 | |
- elixir-version: 1.17 | |
otp-version: 26 | |
- elixir-version: 1.17 | |
otp-version: 25 | |
- elixir-version: 1.16 | |
otp-version: 26 | |
- elixir-version: 1.16 | |
otp-version: 25 | |
- elixir-version: 1.16 | |
otp-version: 24 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0 | |
with: | |
elixir-version: ${{ matrix.elixir-version }} | |
otp-version: ${{ matrix.otp-version }} | |
- name: Restore dependencies cache | |
uses: actions/cache@v4 | |
with: | |
path: deps | |
key: ${{ runner.os }}-elixir-${{ matrix.elixir-version}}-otp-${{ matrix.otp-version }}-mix-unlocked | |
- name: Install unlocked dependencies | |
run: | | |
mix deps.unlock --all | |
mix deps.get | |
- name: Run tests | |
run: mix test |