Skip to content

Commit 8916e47

Browse files
authored
Merge pull request #80 from cosmo0920/add-github-actions
Add GitHub actions for CI
2 parents 435023e + 12aba9f commit 8916e47

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/linux.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Testing on Ubuntu
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ruby: [ '2.4', '2.5', '2.6', '2.7' ]
12+
os:
13+
- ubuntu-latest
14+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install dependencies
18+
run: sudo apt-get install libsnappy-dev libzstd-dev
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
- name: unit testing
23+
env:
24+
CI: true
25+
run: |
26+
gem install bundler rake
27+
bundle install --jobs 4 --retry 3
28+
bundle exec rake test

test/plugin/test_out_webhdfs.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ def test_compress(data)
117117
"namenode" => "server.local:14000",
118118
"path" => "/hdfs/path/file.%Y%m%d.%H%M.log",
119119
"compress" => compress_type
120-
})
120+
}, [
121+
config_element("buffer", "tag, time", {
122+
"@type" => "memory",
123+
"timekey_zone" => "+0300",
124+
"timekey" => 60
125+
})
126+
])
121127
d = create_driver(conf)
122128
rescue Fluent::ConfigError => ex
123129
omit ex.message

0 commit comments

Comments
 (0)