From 9a9de95beaca277011a213a7d1c5f3679bc6380d Mon Sep 17 00:00:00 2001 From: Sascha Steinbiss Date: Fri, 13 Aug 2021 10:47:06 +0200 Subject: [PATCH 1/2] switch to GitHub actions --- .circleci/config.yml | 18 ------------------ .github/workflows/go.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 18 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/go.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 37f92e4..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Golang CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-go/ for more details -version: 2 -jobs: - build: - docker: - - image: circleci/golang:latest - environment: - GO111MODULE: "on" - working_directory: /go/src/github.com/DCSO/fever - steps: - - checkout - - run: - name: Install test dependencies - command: 'sudo apt-get update && sudo apt-get install redis-server -y' - - run: go get -v -t -d ./... - - run: go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..abd876d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +--- +name: Go build + +on: + - push + - pull_request + +jobs: + build: + name: "Go build" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Install non-Go deps + run: | + sudo apt update + sudo apt -yq install redis-server + + - name: Get and build deps + run: go get -v -t ./... + + - name: Build executable + run: go build -v -o fever cmd/fever/main.go + + - name: Run tests + run: go test -v ./... From 039ecbd193e8a9d1b4de40f2c9fbfe9fa552ca07 Mon Sep 17 00:00:00 2001 From: Sascha Steinbiss Date: Fri, 13 Aug 2021 11:07:07 +0200 Subject: [PATCH 2/2] switch and add badges --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a038a2b..a713e5f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# 🔥 FEVER [![CircleCI](https://circleci.com/gh/DCSO/fever.svg?style=svg)](https://circleci.com/gh/DCSO/fever) +# 🔥 FEVER + +[![Build Status](https://img.shields.io/github/workflow/status/DCSO/fever/go.yaml)](https://github.com/DCSO/fever/actions/workflows/go.yaml) [![DebianSBadge](https://badges.debian.net/badges/debian/stable/fever/version.svg)](https://packages.debian.org/stable/fever) [![DebianTBadge](https://badges.debian.net/badges/debian/testing/fever/version.svg)](https://packages.debian.org/testing/fever) ![Ubuntu package](https://img.shields.io/ubuntu/v/fever) The Fast, Extensible, Versatile Event Router (FEVER) is a tool for fast processing of events from Suricata's JSON EVE output. What is meant by 'processing' is defined by a number of modular components, for example facilitating fast ingestion into a database. Other processors implement collection, aggregation and forwarding of various metadata (e.g. aggregated and raw flows, passive DNS data, etc.) as well as performance metrics.