-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.17 KB
/
elixir.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: Elixir CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build and test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with:
elixir-version: "1.12.3"
otp-version: "24.3"
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install Nerves requirements
run: sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
- name: Update hex and rebar
run: mix local.hex --force && mix local.rebar --force
- name: Install dependencies
run: mix archive.install hex nerves_bootstrap --force && mix deps.get
working-directory: boat_tracker
- name: Compile Code
run: mix compile --warnings-as-errors
working-directory: boat_tracker
- name: Run tests
run: mix test
working-directory: boat_tracker