-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (59 loc) · 1.73 KB
/
main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: OTP-${{matrix.otp}}, PG-${{matrix.pg}}, PostGIS-${{matrix.postgis}}, OS-${{matrix.os}}
runs-on: ${{matrix.os}}
services:
cassandra:
image: cassandra
ports:
- 9042:9042
options: --health-cmd "cqlsh --debug" --health-interval 5s --health-retries 10
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-22.04"
pg:
- 14
postgis:
- "3"
otp:
- "26.0"
- "25.3"
- "24.3"
rebar3:
- "3.20.0"
include:
- os: "ubuntu-20.04"
otp: "23.3"
rebar3: "3.17.0"
pg: "12"
postgis: "3"
- os: "ubuntu-20.04"
otp: "22.3"
rebar3: "3.17.0"
pg: "12"
postgis: "3"
- os: "ubuntu-20.04"
otp: "21.3"
rebar3: "3.15.2"
pg: "12"
postgis: "3"
steps:
- uses: actions/checkout@v3
- name: Setup Cassandra Tables
run: "docker exec ${{ job.services.cassandra.id }} cqlsh -u cassandra -p cassandra --debug localhost 9042 --execute=\"CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': '1'};CREATE TABLE test.tab (first_id bigint, second_id text, col_text text, col_map map<text, text>, PRIMARY KEY (first_id, second_id));DESC keyspaces;\""
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{ matrix.rebar3 }}
- name: Common test, eunit, coverage
run: make test
- name: dialyzer
run: make dialyzer