Skip to content

Specs

Specs #187

Workflow file for this run

name: Specs
on:
push:
branches: "*"
pull_request:
branches: "*"
schedule:
- cron: '0 0 * * *'
jobs:
specs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
crystal: [
'1.12.2',
'1.13.0',
'1.14.0',
'nightly',
]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
ports:
- 6379:6379
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@v2
- name: Install shards
run: shards install --ignore-crystal-version
- name: Cache Crystal
uses: actions/cache@v1
with:
path: ~/.cache/crystal
key: ${{ runner.os }}-crystal
- name: Setup env JSON file
run: cp .spec.env.json.ci .spec.env.json
- name: Run tests
run: make tests