-
-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (34 loc) · 799 Bytes
/
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
safelist:
- "fdo.cr github.com"
- ""
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Cache shards
uses: actions/cache@v3
with:
path: lib
key: ${{ runner.os }}-shards-${{ hashFiles('**/shard.lock') }}
restore-keys: ${{ runner.os }}-shards-
- name: Install shards
run: shards update
- name: Run tests
run: KEMAL_ENV=test crystal spec --verbose
env:
SAFELIST: ${{ matrix.safelist }}