Skip to content

Commit 5ccedfa

Browse files
authored
Migrate CI from Travis to GitHub Actions (main branch)
1 parent 0d44542 commit 5ccedfa

3 files changed

Lines changed: 42 additions & 3 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
# Daily run that fans out across every active branch via the matrix
10+
# job below. GitHub only fires `schedule:` from the workflow file on
11+
# the default branch (main); copies of this file on
12+
# non-default branches keep the block for symmetry but it is dormant
13+
# there.
14+
- cron: '0 8 * * *'
15+
workflow_dispatch:
16+
17+
jobs:
18+
tests:
19+
if: github.event_name != 'schedule'
20+
uses: logstash-plugins/.ci/.github/workflows/unit-tests.yml@1.x
21+
# Forward org/repo secrets (e.g. SLACK_BOT_TOKEN used by the reusable's
22+
# failure-notification step). The reusable does not declare a
23+
# workflow_call.secrets block, so `inherit` is required.
24+
secrets: inherit
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
28+
with:
29+
timeout-minutes: 60
30+
31+
scheduled:
32+
if: github.event_name == 'schedule'
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
branch: [main]
37+
uses: logstash-plugins/.ci/.github/workflows/unit-tests.yml@1.x
38+
secrets: inherit
39+
with:
40+
ref: ${{ matrix.branch }}
41+
timeout-minutes: 60

.travis.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Logstash Plugin
22

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

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

0 commit comments

Comments
 (0)