Skip to content

Add the correct CI badge #4

Add the correct CI badge

Add the correct CI badge #4

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
store:
- memory
- redis
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Cache shards
uses: actions/cache@v2
with:
path: lib
key: ${{ runner.os }}-shards-${{ hashFiles('**/shard.lock') }}
restore-keys: ${{ runner.os }}-shards-
- name: Install shards
run: shards update
- name: Run tests
run: crystal spec --verbose
env:
STORE: ${{ matrix.store }}