Repository navigation
111 lines (93 loc) · 2.42 KB
/
Copy pathci.yml
File metadata and controls
111 lines (93 loc) · 2.42 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
105
106
107
108
109
110
111
---
name: CI
permissions: {}
on:
push:
branches:
- '**'
paths-ignore:
- "**.md"
pull_request:
branches:
- '**'
paths-ignore:
- "**.md"
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v5
- name: Install dependencies
run: mise dev:deps
- name: Run RuboCop
run: mise dev:lint
# The gemspec builds its file list from `git ls-files`: a tracked file
# missing from the tree only shows up here, as a failed `gem build`.
build:
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v5
- name: Install dependencies
run: mise dev:deps
- name: Build the gem
run: mise release:build
# The Ruby pinned in mise.toml, on every platform with a precompiled build
# in jdx/ruby (mise's source for Ruby binaries). That repository ships a
# single macOS archive, for Apple Silicon, so there is no Intel macOS job:
# it would compile Ruby from source instead of testing the gem.
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- ubuntu-24.04-arm
- macos-26
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v5
- name: Install dependencies
run: mise dev:deps
- name: Run tests
run: mise dev:spec
# Every other maintained Ruby down to the gemspec's required_ruby_version.
# MISE_RUBY_VERSION overrides the version pinned in mise.toml.
test_ruby_versions:
strategy:
fail-fast: false
matrix:
ruby:
- 3.3.12
- 3.4.11
runs-on: ubuntu-24.04
env:
MISE_RUBY_VERSION: ${{ matrix.ruby }}
steps:
- name: Git checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup mise
uses: jdx/mise-action@v5
- name: Install dependencies
run: mise dev:deps
- name: Run tests
run: mise dev:spec