-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (83 loc) · 2.25 KB
/
Copy pathci.yml
File metadata and controls
104 lines (83 loc) · 2.25 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
name: CI
permissions: {}
# crystalline is the Crystal LSP server, only needed in an editor.
# Its macOS binary (>= 0.18.0) is dynamically linked against
# /opt/homebrew/opt/llvm/lib/libLLVM.dylib, which is absent on the runners,
# so the plugin post_install check fails. CI never uses it, so skip installing it.
env:
MISE_DISABLE_TOOLS: crystalline
on:
push:
branches:
- '**'
paths-ignore:
- "**.md"
pull_request:
branches:
- '**'
paths-ignore:
- "**.md"
schedule:
- cron: '0 4 1 * *'
# Run workflow manually
workflow_dispatch:
jobs:
ameba:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v4
- name: Install dependencies
run: mise dev:deps
- name: Run static code analysis
run: mise dev:ameba
test_linux:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v4
- name: Install dependencies
run: mise dev:deps
- name: Run tests
run: mise dev:spec
test_macos_arm64:
runs-on: macos-26
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v4
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
- name: Fix Crystal shards
run: mise dev:fix-shards-command
- name: Install dependencies
run: mise dev:deps
- name: Run tests
run: mise dev:spec
test_macos_amd64:
runs-on: macos-26-intel
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v4
# TODO: remove me when https://github.com/crystal-lang/crystal/issues/16746 is fixed
- name: Fix Crystal shards
run: mise dev:fix-shards-command
- name: Install dependencies
run: mise dev:deps
- name: Run tests
run: mise dev:spec