-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (38 loc) · 1.11 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
name: Elixir CI
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-20.04
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
strategy:
matrix:
include:
- otp: 23.3.1
elixir: 1.11.0
- otp: 24.3.3
elixir: 1.13.4
- otp: 26.0
elixir: 1.15
steps:
- uses: actions/checkout@v2
- uses: erlef/[email protected]
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-cache-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-cache-
- name: Get dependencies
run: mix deps.get
- name: Run primitive end2end test for integration with TypedStruct
run: cd example_typed_integrations && mix deps.get && mix compile && mix run -e EctoSchemaStruct.new!
- name: Run checks
run: mix check || mix check --retry