Skip to content

feat: simplify production setup instructions with docker #28

feat: simplify production setup instructions with docker

feat: simplify production setup instructions with docker #28

Workflow file for this run

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