Invoke repo() with parenthesis to avoid ambiguity in Elixir 1.15 #187
Workflow file for this run
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: Code Quality | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
elixir_version: '1.15' | |
otp_version: '26.0' | |
jobs: | |
credo: | |
name: Credo | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Set up Elixir and OTP | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ env.elixir_version }} | |
otp-version: ${{ env.otp_version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: 'Restore cache for deps/ and _build/ directories' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-dev-${{ env.elixir_version }}-${{ env.otp_version }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix-dev-${{ env.elixir_version }}-${{ env.otp_version }}- | |
- name: Install Mix dependencies | |
run: mix deps.get | |
- name: Run credo | |
run: mix credo |