Skip to content

Commit ea4c4f8

Browse files
authored
Create Github Action (elixir.yml)
1 parent deafa57 commit ea4c4f8

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/elixir.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
test:
19+
20+
runs-on: ubuntu-latest
21+
22+
name: OTP ${{matrix.pair.otp}} / Elixir ${{matrix.pair.elixir}}
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- pair:
29+
otp: 25
30+
elixir: 1.14
31+
- pair:
32+
otp: 27
33+
elixir: 1.18
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: erlef/setup-elixir@v1
37+
with:
38+
otp-version: ${{matrix.pair.otp}}
39+
elixir-version: ${{matrix.pair.elixir}}
40+
- name: Dependencies Cache
41+
uses: actions/cache@v3
42+
with:
43+
path: deps
44+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
45+
restore-keys: ${{ runner.os }}-mix-
46+
- name: Install Dependencies
47+
run: mix deps.get
48+
- name: Test
49+
run: mix test

0 commit comments

Comments
 (0)