-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (41 loc) · 1.25 KB
/
elixir_credo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Elixir Credo
on:
push:
branches: [master]
pull_request:
env:
MIX_ENV: test
jobs:
elixir-credo:
name: Credo
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- uses: rokroskar/[email protected]
if: "github.ref != 'refs/heads/master'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/[email protected]
- name: Copy config templates
working-directory: "config"
run: |
cp dev.local.exs.example dev.local.exs
cp test.local.exs.example test.local.exs
- name: Set up Elixir
uses: erlef/[email protected]
with:
elixir-version: "1.12.2" # Define the elixir version [required]
otp-version: "24.0" # Define the OTP version [required]
experimental-otp: true
- name: Restore deps cache
uses: actions/[email protected]
with:
path: |
**/_build
**/deps
key: ${{ runner.os }}-mix-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-${{ secrets.CACHE_VERSION }}
- name: Install dependencies
run: mix deps.get
- name: Check Credo suggestions
run: mix credo