Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit d79d38e

Browse files
committed
setup basic format and test checks
1 parent 750ef1f commit d79d38e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/elixir.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Elixir CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
MIX_ENV: test
11+
12+
jobs:
13+
build:
14+
15+
name: Build and test
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Elixir
21+
uses: erlef/setup-beam@v1
22+
with:
23+
elixir-version: '1.14.4' # Define the elixir version [required]
24+
otp-version: '25.3' # Define the OTP version [required]
25+
- name: Install c-compiler
26+
run: sudo apt-get install -y build-essential
27+
- name: Restore dependencies cache
28+
uses: actions/cache@v2
29+
with:
30+
path: deps
31+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
32+
restore-keys: ${{ runner.os }}-mix-
33+
- name: Install dependencies
34+
run: mix deps.get
35+
- name: Run tests
36+
run: mix test
37+
- name: Check Formatting
38+
run: mix format --check-formatted

0 commit comments

Comments
 (0)