-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 845 Bytes
/
elixir.yml
File metadata and controls
31 lines (27 loc) · 845 Bytes
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
name: Elixir CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
elixir-version: 1.18.1-otp-27 # Define the elixir version [required]
otp-version: 27.2 # Define the OTP version [required]
- uses: actions/cache@v1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test
- name: Build escript
run: mix escript.build