Skip to content

Commit 20a8ce5

Browse files
authored
Create elixir.yml workflow
1 parent 413b527 commit 20a8ce5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/elixir.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Elixir CI
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build:
19+
20+
name: Build and test
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Elixir
26+
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
27+
with:
28+
elixir-version: '1.15.2' # [Required] Define the Elixir version
29+
otp-version: '26.0' # [Required] Define the Erlang/OTP version
30+
- name: Restore dependencies cache
31+
uses: actions/cache@v3
32+
with:
33+
path: deps
34+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
35+
restore-keys: ${{ runner.os }}-mix-
36+
- name: Install dependencies
37+
run: mix deps.get
38+
- name: Run tests
39+
run: mix test

0 commit comments

Comments
 (0)