Skip to content

Specs

Specs #26

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.9.2',
'1.10.0',
'1.11.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