-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.11 KB
/
elixir.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: Build and test
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@904c511e63061a8f501ae4b081ce2c0e9cfc70ab
with:
elixir-version: '1.14.5' # Define the elixir version [required]
otp-version: '25.3.2' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test