-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (38 loc) · 989 Bytes
/
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
name: Elixir CI
on:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: isn
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@a23b1fc4452a892cf3e92cbc2c405256cd6c27ec
with:
elixir-version: '1.15.2' # Define the elixir version [required]
otp-version: '26.0.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
env:
POSTGRES_USER: isn
POSTGRES_PASSWORD: secret