Skip to content

Commit 0893c39

Browse files
authored
Merge pull request #4380 from fluent/refine-ci
Refine CI settings: * Unify CI settings for each platforms to one file * Don't run CI for Ruby head on each push/pull_request event Because Ruby head is continually changed and not released yet, running CI one shot isn't so meaningful. Instead run it regularly on every Sunday. * Add TESTOPT=-v to all platfroms It's useful to investigate when a test is stalled. * Remove a hack for Ruby 3.0 on Windows It seems no longer needed.
2 parents e1516b5 + 2ce88ec commit 0893c39

File tree

4 files changed

+37
-93
lines changed

4 files changed

+37
-93
lines changed

Diff for: .github/workflows/macos-test.yaml

-34
This file was deleted.

Diff for: .github/workflows/test-ruby-head.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
schedule:
5+
- cron: '11 14 * * 0'
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
continue-on-error: true
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
16+
ruby-version: ['head']
17+
18+
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
- name: Install addons
26+
if: ${{ matrix.os == 'ubuntu-latest' }}
27+
run: sudo apt-get install libgmp3-dev libcap-ng-dev
28+
- name: Install dependencies
29+
run: bundle install
30+
- name: Run tests
31+
run: bundle exec rake test TESTOPTS=-v
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Testing on Ubuntu
1+
name: Test
22

33
on:
44
push:
@@ -9,28 +9,24 @@ on:
99
jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
12-
continue-on-error: ${{ matrix.experimental }}
12+
continue-on-error: false
1313
strategy:
1414
fail-fast: false
1515
matrix:
16+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
1617
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7']
17-
os: [ubuntu-latest]
18-
experimental: [false]
19-
include:
20-
- ruby-version: head
21-
os: ubuntu-latest
22-
experimental: true
2318

24-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
19+
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
2520
steps:
2621
- uses: actions/checkout@v3
2722
- name: Set up Ruby
2823
uses: ruby/setup-ruby@v1
2924
with:
3025
ruby-version: ${{ matrix.ruby-version }}
3126
- name: Install addons
27+
if: ${{ matrix.os == 'ubuntu-latest' }}
3228
run: sudo apt-get install libgmp3-dev libcap-ng-dev
3329
- name: Install dependencies
3430
run: bundle install
3531
- name: Run tests
36-
run: bundle exec rake test
32+
run: bundle exec rake test TESTOPTS=-v

Diff for: .github/workflows/windows-test.yaml

-49
This file was deleted.

0 commit comments

Comments
 (0)