Adding CI Pipeline for tests and linters

pull/1/head
Drew Bednar 6 months ago
parent ae5965f2e1
commit 4e079ecb99

@ -0,0 +1,18 @@
---
kind: pipeline
type: docker
name: CI Test Pipeline
steps:
- name: Go Unit Tests and Linters
image: golang:1.22
commands:
- go test ./...
- go vet ./...
- bash -xc './scripts/check_go_fmt.sh
group: test-lint
trigger:
event:
- pull_request
- push

@ -1,3 +1,5 @@
# fluxfeed
# Flux Feed
![build-status](https://drone.runcible.io/api/badges/androiddrew/fluxfeed/status.svg)
An Indie Reader for the modern day

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eo pipefail
IFS=$'\n\t'
if [ -n "$(gofmt -l .)" ]; then
echo "Failure! The following files need formatting with go fmt:"
gofmt -l .
exit 1
fi
echo "All go fmt checks passed!"
Loading…
Cancel
Save