Skip to content

Commit 00056b3

Browse files
committed
organize initial CI shape
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
1 parent cc90711 commit 00056b3

3 files changed

Lines changed: 38 additions & 18 deletions

File tree

.github/workflows/main.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,47 @@
1-
name: Ruby
1+
name: Test
22

33
on:
44
push:
55
branches:
6-
- master
7-
6+
- main
87
pull_request:
98

109
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
name: Ruby ${{ matrix.ruby }}
10+
test:
1411
strategy:
12+
fail-fast: false
1513
matrix:
16-
ruby:
17-
- '3.2.2'
18-
14+
ruby: ['3.4', '3.3', '3.2']
15+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
16+
runs-on: ${{ matrix.os }}
17+
name: Test with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
1918
steps:
2019
- uses: actions/checkout@v4
2120
- name: Set up Ruby
2221
uses: ruby/setup-ruby@v1
2322
with:
2423
ruby-version: ${{ matrix.ruby }}
2524
bundler-cache: true
26-
- name: Run the default task
25+
- name: Test
2726
run: bundle exec rake
27+
28+
gem:
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
ruby: ['3.4', '3.3', '3.2']
33+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
34+
runs-on: ${{ matrix.os }}
35+
name: Gem with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Set up Ruby
39+
uses: ruby/setup-ruby@v1
40+
with:
41+
ruby-version: ${{ matrix.ruby }}
42+
bundler-cache: true
43+
- name: Install
44+
run: bundle exec rake install
45+
- name: Run exe
46+
run: |
47+
tailcheck

fluent-tail_checker.gemspec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Gem::Specification.new do |spec|
88
spec.authors = ["Daijiro Fukuda"]
99
spec.email = ["fukuda@clear-code.com"]
1010

11-
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
12-
spec.description = "TODO: Write a longer description or delete this line."
13-
spec.homepage = "TODO: Put your gem's website or public repo URL here."
11+
spec.summary = "summary" # TODO
12+
spec.description = "description" # TODO
13+
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
1414
spec.required_ruby_version = ">= 3.1.0"
1515

16-
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
16+
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
1717

18-
spec.metadata["homepage_uri"] = spec.homepage
19-
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
20-
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
18+
# spec.metadata["homepage_uri"] = spec.homepage
19+
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
20+
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
2121

2222
# Specify which files should be added to the gem when it is released.
2323
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.

test/fluent/tail_checker_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class Fluent::TailCheckerTest < Test::Unit::TestCase
1010
end
1111

1212
test "something useful" do
13-
assert_equal("expected", "actual")
13+
assert_equal("actual", "actual")
1414
end
1515
end

0 commit comments

Comments
 (0)