-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (54 loc) · 1.41 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: master
pull_request:
branches: [master]
schedule:
- cron: "0 0 * * 0"
jobs:
container-job:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
stable: [true]
crystal:
- 1.1.1
- 1.2.2
- 1.3.2
- 1.4.1
- 1.5.0
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 }}-${{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
with:
redis-version: 6.2
- run: redis-cli info | grep version
- name: Run tests
run: crystal spec