-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (36 loc) · 933 Bytes
/
test.yml
File metadata and controls
38 lines (36 loc) · 933 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
31
32
33
34
35
36
37
38
name: test
on:
push:
branches:
- master
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: 'mysecretpassword'
POSTGRES_USER: 'lbillaud'
POSTGRES_DB: 'cigogne_test'
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- run: psql -f test/setup_test_db.sql postgres://lbillaud:mysecretpassword@localhost:5432/cigogne_test
- uses: erlef/setup-beam@v1
with:
otp-version: "27.1.2"
gleam-version: "1.11.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test