-
Notifications
You must be signed in to change notification settings - Fork 9
30 lines (30 loc) · 883 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (30 loc) · 883 Bytes
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
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
name: OTP 28 / Elixir 1.19
steps:
- uses: actions/checkout@v7
- name: Install PostgreSQL Binaries
run: |
sudo apt-get update
sudo apt-get install -y postgresql postgresql-contrib
sudo systemctl stop postgresql
sudo chown -R $USER:$USER /var/run/postgresql
PG_BINDIR=$(ls -d /usr/lib/postgresql/*/bin | sort -V | tail -n 1)
echo "$PG_BINDIR" >> $GITHUB_PATH
- uses: erlef/setup-beam@v1
with:
otp-version: 28
elixir-version: 1.19
- uses: actions/cache@v6
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- run: mix deps.get && mix test