-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 856 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
on:
push:
pull_request:
branches: [master]
jobs:
verify-linux:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v2
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Install libharu
run: sudo apt install libhpdf-dev
- name: Install development dependencies
run: shards install
- name: Run tests
run: make lint spec
- name: Run examples
run: make examples
- name: Make sure the files are formatted
run: crystal tool format --check
verify-macos:
runs-on: macos-latest
steps:
- name: Download source
uses: actions/checkout@v2
- name: Install libharu / crystal
run: brew install libharu crystal libpng
- name: Run tests
run: make examples spec