Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 178087b

Browse files
authoredJun 27, 2021
fix: add github action elixir.yaml
1 parent 1c56744 commit 178087b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 

‎.github/workflows/elixir.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Elixir CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
name: Build and test
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Elixir
18+
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
19+
with:
20+
elixir-version: '1.10.3' # Define the elixir version [required]
21+
otp-version: '22.3' # Define the OTP version [required]
22+
- name: Restore dependencies cache
23+
uses: actions/cache@v2
24+
with:
25+
path: deps
26+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
27+
restore-keys: ${{ runner.os }}-mix-
28+
- name: Install dependencies
29+
run: mix deps.get
30+
- name: Run tests
31+
run: mix test

0 commit comments

Comments
 (0)
Failed to load comments.