forked from ruby-git/ruby-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperimental_continuous_integration.yml
More file actions
59 lines (47 loc) · 1.58 KB
/
experimental_continuous_integration.yml
File metadata and controls
59 lines (47 loc) · 1.58 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
name: CI Experimental
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
# Skip this job if triggered by pushing a release commit
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'chore: release '))
runs-on: ${{ matrix.operating-system }}
continue-on-error: true
env: { JAVA_OPTS: -Djdk.io.File.enableADS=true }
strategy:
fail-fast: false
matrix:
include:
- # Building against head version of Ruby is considered experimental
ruby: head
operating-system: ubuntu-latest
experimental: Yes
java_version: ""
- # Since JRuby on Windows is known to not work, consider this experimental
ruby: jruby-head
operating-system: windows-latest
experimental: Yes
java_version: "21"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Java
if: matrix.java_version != ''
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
- 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