-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 1.16 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Tests
on:
push:
paths-ignore:
- 'docs/**'
- '*.hcl'
- '*.md'
- '*.yml'
jobs:
macos-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO: Remove openssl@3 upgrade cmd after 20240422.3 is no longer the latest
# macos-14-arm64 image
- name: Install crystal and tool dependencies
run: |
brew install crystal meson openssl@3
brew upgrade openssl@3
- name: Install dependencies
run: shards install
- name: Run lint
run: make lint
- name: Run tests
run: make test STATIC=1
ubuntu-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add Crystal repos
run: curl -sSL https://crystal-lang.org/install.sh | sudo bash
- name: Install crystal and tool dependencies
run: |
sudo apt install -y crystal libevent-dev libpcre2-dev libssl-dev ninja-build
sudo apt purge meson
sudo pip3 install meson
- name: Install dependencies
run: shards install
- name: Run lint
run: make lint
- name: Run tests
run: make test