Skip to content

Commit edf390f

Browse files
authored
Merge pull request #93 from fluent/update-ci
CI: Refine CI settings
2 parents a6cf4fc + c695763 commit edf390f

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Testing with Ruby head
2+
on:
3+
schedule:
4+
- cron: '32 14 * * 0'
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: ['ubuntu-latest']
13+
ruby: [ 'head' ]
14+
15+
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install dependencies
19+
run: sudo apt-get install libsnappy-dev libzstd-dev
20+
- uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby }}
23+
- name: unit testing
24+
env:
25+
CI: true
26+
run: |
27+
bundle install --jobs 4 --retry 3
28+
bundle exec rake test
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Testing on Ubuntu
1+
name: Test
22
on:
33
push:
44
branches: [master]
@@ -7,20 +7,13 @@ on:
77
jobs:
88
build:
99
runs-on: ${{ matrix.os }}
10-
continue-on-error: ${{ matrix.experimental }}
1110
strategy:
1211
fail-fast: false
1312
matrix:
14-
ruby: [ '3.2', '3.1', '3.0', '2.7' ]
15-
os:
16-
- ubuntu-latest
17-
experimental: [false]
18-
include:
19-
- ruby: head
20-
os: ubuntu-latest
21-
experimental: true
13+
os: ['ubuntu-latest']
14+
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7' ]
2215

23-
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
16+
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
2417
steps:
2518
- uses: actions/checkout@v4
2619
- name: Install dependencies
@@ -32,6 +25,5 @@ jobs:
3225
env:
3326
CI: true
3427
run: |
35-
gem install bundler rake
3628
bundle install --jobs 4 --retry 3
3729
bundle exec rake test

0 commit comments

Comments
 (0)