-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 864 Bytes
/
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
name: Crystal CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: Setup Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.9.2
- name: Setup .env
run: cp .env.test .env
- name: Install dependencies
run: shards install
- name: Static analysis
run: ./bin/ameba
- name: Run tests
run: KEMAL_ENV=test crystal spec