-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 1.01 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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir_version: 1.16.3
otp_version: 26.2.5
lint: true
- elixir_version: 1.16.3
otp_version: 26.2.5
blend: nx_0_6
- elixir_version: 1.14.5
otp_version: 25.3.2.12
blend: nx_0_5
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_version}}
elixir-version: ${{matrix.elixir_version}}
- run: cp blend/${{matrix.blend}}.mix.lock mix.lock
if: matrix.blend
- run: mix deps.get
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test