Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,37 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
stable: [true]
crystal:
- 0.36.1
- 1.0.0
- 1.1.1
include:
- os: ubuntu-latest
crystal: nightly
stable: false
- os: macos-latest
crystal: nightly
stable: false
continue-on-error: ${{ !matrix.stable }}
runs-on: ${{ matrix.os }}
name: 'crystal: ${{ matrix.crystal }}, os: ${{ matrix.os }}'
steps:
- name: Download source
uses: actions/checkout@v2
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Cache shards
uses: actions/cache@v2
with:
path: ~/.cache/shards
key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }}
key: ${{ runner.os }}-${{matrix.crystal}}-shards-${{ hashFiles('shard.yml') }}
restore-keys: ${{ runner.os }}-shards-
- name: Install shards
run: shards update

- name: Redis on ${{ runner.os }}
uses: shogo82148/actions-setup-redis@v1
id: main_redis
Expand All @@ -48,4 +64,3 @@ jobs:
env:
GITHUB_ACTIONS_CI: 1
CI_UNIXSOCKET: ${{ steps.main_redis.outputs.redis-unix-socket }}

2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.8.2
authors:
- Stefan Wille <nospam-post@nospam-stefanwille-dot-com>

crystal: ">= 0.34.0, < 2.0.0"
crystal: ">= 0.36.1"

dependencies:
pool:
Expand Down