forked from octokit-cr/octokit.cr
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (57 loc) · 1.66 KB
/
test.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
55
56
57
58
name: Crystal Spec
on:
push:
jobs:
test:
name: "${{ !matrix.stable && '🚧 ' || ''}}crystal: ${{ matrix.crystal }}, MT: ${{ matrix.MT }}, canary: ${{ matrix.canary }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
crystal:
- 1.2.1
- 1.2.2
MT: [false]
canary: [false]
stable: [true]
include:
- crystal: 1.2.1
canary: false
MT: true
stable: false
- crystal: nightly
canary: false
stable: false
MT: false
- crystal: nightly
canary: false
stable: false
MT: true
- crystal: 1.2.1
canary: true
MT: true
stable: false
- crystal: nightly
canary: true
stable: false
MT: false
- crystal: nightly
canary: true
stable: false
MT: true
continue-on-error: ${{ !matrix.stable }}
steps:
- name: Install crystal
uses: crystal-lang/[email protected]
with:
crystal: ${{ matrix.crystal }}
- uses: actions/checkout@v2
- name: ${{ matrix.canary && 'Update' || 'Install' }} shards
if: ${{ matrix.canary || steps.cache-shards.outputs.cache-hit != 'true' }}
run: shards ${{ matrix.canary && 'update' || 'install' }} --ignore-crystal-version
- name: Run crystal spec
if: ${{ !matrix.canary || steps.diff.modified }}
timeout-minutes: 25
run: crystal spec --error-trace --order random
env:
CRYSTAL_VERSION: ${{ matrix.crystal }}