-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (34 loc) · 856 Bytes
/
ci.yml
File metadata and controls
44 lines (34 loc) · 856 Bytes
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
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
crystal:
- latest
- nightly
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Cache shards
uses: actions/cache@v3
with:
path: ~/.cache/shards
key: shards-${{ hashFiles('shard.lock') }}
restore-keys: shards-
- name: Install dependencies
run: shards install
- name: Create sessions directory
run: mkdir -p ./spec/assets/sessions/
- name: Run tests
run: crystal spec
- name: Check code formatting
run: crystal tool format --check