-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.34 KB
/
Crystal 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
55
56
57
name: Crystal CI
on:
push:
branches: ["main"]
paths:
- "src/**"
- ".github/workflows/Crystal CI.yml"
pull_request:
branches: ["main"]
paths:
- "src/**"
- ".github/workflows/Crystal CI.yml"
schedule:
- cron: "0 0 * * 1" # Every Monday 8 AM CST
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
crystal: [latest, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Download source
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Install shards
run: shards install
- name: Run tests
run: crystal spec --order=random
- name: Build
run: shards build
compatibility:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
with:
crystal: 1.4.1
- name: Specify shards version
run: |
sed -i '/github: grip-framework\/grip/a \ \ \ \ version: 2.0.1' shard.yml
- name: Install shards
run: shards install
- name: Run tests
run: crystal spec --order=random
- name: Build
run: shards build