-
-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (32 loc) · 882 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
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
test:
strategy:
fail-fast: true
matrix:
include:
- {os: ubuntu-latest, crystal: latest}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install libgtk-4-dev gobject-introspection gir1.2-gtk-4.0 libgirepository1.0-dev
- name: Install crystal dependencies
run: shards install
- name: Linter
run: crystal tool format --check
- name: Generate bindings
run: ./bin/gi-crystal
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: crystal spec -v