forked from adept-bits/adept_svg
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.52 KB
/
ci.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
45
46
47
48
49
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
mix_check:
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
runs-on: ubuntu-20.04
strategy:
# Following matrix is maintained by following https://hexdocs.pm/elixir/compatibility-and-deprecations.html
# And, only the most recent 3 versions of Elixir are involved.
matrix:
include:
# Elixir v1.16
- { elixir: '1.16.x', otp: '26.x' }
- { elixir: '1.16.x', otp: '25.x' }
- { elixir: '1.16.x', otp: '24.x' }
# Elixir v1.15
- { elixir: '1.15.x', otp: '26.x' }
- { elixir: '1.15.x', otp: '25.x' }
- { elixir: '1.15.x', otp: '24.x' }
# Elixir v1.14
- { elixir: '1.14.x', otp: '25.x' }
- { elixir: '1.14.x', otp: '24.x' }
- { elixir: '1.14.x', otp: '23.x' }
steps:
- uses: actions/checkout@v3
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-elixir_${{ matrix.elixir }}-otp_${{ matrix.otp }}-mix_${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-elixir_${{ matrix.elixir }}-otp_${{ matrix.otp }}-mix
- name: Install dependencies
run: mix deps.get
- name: Run mix check
run: mix check