-
Notifications
You must be signed in to change notification settings - Fork 533
43 lines (36 loc) · 1.15 KB
/
continuous_integration.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
name: CI
on:
push:
branches: [master,v1]
pull_request:
branches: [master,v1]
workflow_dispatch:
jobs:
build:
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
continue-on-error: ${{ matrix.experimental == 'Yes' }}
env: { JAVA_OPTS: -Djdk.io.File.enableADS=true }
strategy:
fail-fast: false
matrix:
# Only the latest versions of JRuby and TruffleRuby are tested
ruby: ["3.1", "3.2", "3.3", "3.4", "truffleruby-24.1.2", "jruby-9.4.12.0"]
operating-system: [ubuntu-latest]
experimental: [No]
include:
- # Only test with minimal Ruby version on Windows
ruby: 3.1
operating-system: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Build
run: bundle exec rake default
- name: Test Gem
run: bundle exec rake test:gem