Specs #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10.0', | |
'1.11.2', | |
'1.12.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 |