Skip to content
Open
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
7 changes: 0 additions & 7 deletions .circleci/compile.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_config.sh

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_malformed.sh

This file was deleted.

43 changes: 0 additions & 43 deletions .circleci/functional_tests_partial.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .circleci/unit_tests.sh

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci test
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'

- name: Install Python 3.8
uses: actions/setup-python@v2.2.2
with:
python-version: 3.8

- name: Update apt repositories
run: sudo apt update

- name: Upgrade python packaging tools
run: python -m pip install --upgrade pip setuptools wheel

- name: Compile
run: make

- name: Run unit tests
run: make test

- name: Setup dependencies
run: cd test && make setup-venv && make setup-splunk

- name: Run functional tests partial log
run: cd test && make test-partial

- name: Run functional tests config params
run: cd test && make test-config

- name: Run functional tests malformed data
run: cd test && make test-malformed
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
FROM golang:1.9.2
FROM golang:1.19.0

WORKDIR /go/src/github.com/splunk/splunk-logging-plugin/

COPY . /go/src/github.com/splunk/splunk-logging-plugin/

# install dep
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

RUN cd /go/src/github.com/splunk/splunk-logging-plugin && dep ensure

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/splunk-logging-plugin .

FROM alpine:3.7
Expand Down
Loading