Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Commit 65e174f

Browse files
authored
Merge pull request #3 from podium/github-action
Create elixir.yml
2 parents 54ba59a + 61e330c commit 65e174f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/elixir.yml

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

0 commit comments

Comments
 (0)