Skip to content

Commit a00d8ff

Browse files
authored
Merge pull request #91 from fluent/add-github-actions
Add GitHub Actions for CI
2 parents 2fe22db + f6b78e4 commit a00d8ff

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

.github/workflows/linux.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
- name: unit testing
21+
env:
22+
CI: true
23+
run: |
24+
gem install bundler rake
25+
bundle install --jobs 4 --retry 3
26+
bundle exec rake test

.github/workflows/macos.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Testing on macOS
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+
- macOS-latest
14+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
- name: unit testing
21+
env:
22+
CI: true
23+
run: |
24+
gem install bundler rake
25+
bundle install --jobs 4 --retry 3
26+
bundle exec rake test

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Grok Parser for Fluentd [![Build Status](https://travis-ci.org/fluent/fluent-plugin-grok-parser.svg?branch=master)](https://travis-ci.org/fluent/fluent-plugin-grok-parser)
1+
# Grok Parser for Fluentd
2+
3+
![Testing on Ubuntu](https://github.com/fluent/fluent-plugin-grok-parser/workflows/Testing%20on%20Ubuntu/badge.svg?branch=master)
4+
![Testing on macOS](https://github.com/fluent/fluent-plugin-grok-parser/workflows/Testing%20on%20macOS/badge.svg?branch=master)
25

36
This is a Fluentd plugin to enable Logstash's Grok-like parsing logic.
47

0 commit comments

Comments
 (0)