-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 961 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
41
42
43
44
name: fleet_app_client CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check-format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:1.6.2
steps:
- uses: actions/checkout@v2
- name: Format
run: crystal tool format --check
specs:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:1.6.2
steps:
- uses: actions/checkout@v2
- name: Set up Crystal cache
uses: actions/cache@v2
id: crystal-cache
with:
path: |
~/.cache/crystal
lib
lucky_tasks
key: ${{ runner.os }}-crystal-${{ hashFiles('**/shard.lock') }}
restore-keys: |
${{ runner.os }}-crystal-
- name: Install shards
if: steps.crystal-cache.outputs.cache-hit != 'true'
run: shards check || shards install --ignore-crystal-version
- name: Run tests
run: crystal spec