-
Notifications
You must be signed in to change notification settings - Fork 1
113 lines (111 loc) · 3 KB
/
specs.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Specs
on:
push:
branches: "*"
pull_request:
branches: "*"
schedule:
- cron: '0 0 * * *'
jobs:
mysql:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: marten_auth_test
ports:
- 3307:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
continue-on-error: ${{ matrix.crystal == 'nightly' }}
strategy:
fail-fast: false
matrix:
crystal: [
'1.13.0',
'1.14.0',
'1.15.0',
'nightly',
]
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@v2
- name: Install packages required for MySQL
run: |
apt-get update
apt-get -yqq install mysql-client libmysqlclient-dev
- name: Install shards
run: shards install --ignore-crystal-version
- name: Setup env JSON file
run: cp .spec.env.json.ci .spec.env.json
- name: Run tests
run: make tests
env:
MARTEN_SPEC_DB_CONNECTION: mysql
postgresql:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.db_version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: marten_auth_test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
continue-on-error: ${{ matrix.crystal == 'nightly' }}
strategy:
fail-fast: false
matrix:
db_version: ['11', '12', '13', '14', '15', 'latest']
crystal: [
'1.13.0',
'1.14.0',
'1.15.0',
'nightly',
]
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@v2
- name: Install packages required for PostgreSQL
run: |
apt-get update
apt-get -yqq install libpq-dev postgresql-client libsqlite3-dev
- name: Install shards
run: shards install --ignore-crystal-version
- name: Setup env JSON file
run: cp .spec.env.json.ci .spec.env.json
- name: Run tests
run: make tests
env:
MARTEN_SPEC_DB_CONNECTION: postgresql
sqlite:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.crystal == 'nightly' }}
strategy:
fail-fast: false
matrix:
crystal: [
'1.13.0',
'1.14.0',
'1.15.0',
'nightly',
]
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@v2
- name: Install packages required for SQLite
run: |
apt-get update
apt-get -yqq install libsqlite3-dev
- name: Install shards
run: shards install --ignore-crystal-version
- name: Setup env JSON file
run: cp .spec.env.json.ci .spec.env.json
- name: Run tests
run: make tests