Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Integration Tests

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Daily run that fans out across every active branch via the matrix
# job below. GitHub only fires `schedule:` from the workflow file on
# the default branch (main); copies of this file on
# non-default branches keep the block for symmetry but it is dormant
# there.
- cron: '0 8 * * *'
workflow_dispatch:

jobs:
tests:
if: github.event_name != 'schedule'
uses: logstash-plugins/.ci/.github/workflows/integration-tests.yml@1.x
# Forward org/repo secrets (e.g. SLACK_BOT_TOKEN used by the reusable's
# failure-notification step). The reusable does not declare a
# workflow_call.secrets block, so `inherit` is required.
secrets: inherit
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
with:
timeout-minutes: 60

scheduled:
if: github.event_name == 'schedule'
strategy:
fail-fast: false
matrix:
branch: [main]
uses: logstash-plugins/.ci/.github/workflows/integration-tests.yml@1.x
secrets: inherit
with:
ref: ${{ matrix.branch }}
timeout-minutes: 60
41 changes: 41 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Unit Tests

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Daily run that fans out across every active branch via the matrix
# job below. GitHub only fires `schedule:` from the workflow file on
# the default branch (main); copies of this file on
# non-default branches keep the block for symmetry but it is dormant
# there.
- cron: '0 8 * * *'
workflow_dispatch:

jobs:
tests:
if: github.event_name != 'schedule'
uses: logstash-plugins/.ci/.github/workflows/unit-tests.yml@1.x
# Forward org/repo secrets (e.g. SLACK_BOT_TOKEN used by the reusable's
# failure-notification step). The reusable does not declare a
# workflow_call.secrets block, so `inherit` is required.
secrets: inherit
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
with:
timeout-minutes: 60

scheduled:
if: github.event_name == 'schedule'
strategy:
fail-fast: false
matrix:
branch: [main]
uses: logstash-plugins/.ci/.github/workflows/unit-tests.yml@1.x
secrets: inherit
with:
ref: ${{ matrix.branch }}
timeout-minutes: 60
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logstash Plugin

[![Travis Build Status](https://travis-ci.com/logstash-plugins/logstash-codec-avro.svg)](https://travis-ci.com/logstash-plugins/logstash-codec-avro)
[![Unit Tests](https://github.com/logstash-plugins/logstash-codec-avro/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/logstash-plugins/logstash-codec-avro/actions/workflows/unit-tests.yml)
[![Integration Tests](https://github.com/logstash-plugins/logstash-codec-avro/actions/workflows/integration-tests.yml/badge.svg?branch=main)](https://github.com/logstash-plugins/logstash-codec-avro/actions/workflows/integration-tests.yml)

This is a plugin for [Logstash](https://github.com/elastic/logstash).

Expand Down
Loading