forked from setdef/Rooibos
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) Β· 1.35 KB
/
ci.yml
File metadata and controls
54 lines (44 loc) Β· 1.35 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
# SPDX-FileCopyrightText: 2026 Kerrick Long <me@kerricklong.com>
# SPDX-License-Identifier: LGPL-3.0-or-later
name: CI
on:
push:
pull_request:
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.3", "3.4", "4.0.1"]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
CI: "true"
steps:
- uses: actions/checkout@v4
- name: Override Ruby version in mise.toml
shell: bash
run: sed -i.bak 's/ruby = .*/ruby = "${{ matrix.ruby }}"/' mise.toml
- name: Install Ruby via RubyInstaller (Windows)
if: runner.os == 'Windows'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Configure Windows Ruby (non-mise)
if: runner.os == 'Windows'
shell: pwsh
run: |
Add-Content -Path .mise.local.toml -Value "[settings]`ndisable_tools = [`"ruby`"]"
- name: Install toolchain via mise
uses: jdx/mise-action@v2
- name: Setup (Unix)
if: runner.os != 'Windows'
shell: bash
run: bin/setup
- name: Setup (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: bin/setup.ps1
- name: Default task
run: mise x -- bundle exec rake