Skip to content

Commit

Permalink
Chore: move "go test" to Github
Browse files Browse the repository at this point in the history
Related: #65
  • Loading branch information
till committed Mar 31, 2021
1 parent 6b2ea80 commit 6af7d16
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,12 @@ x_ref:
workflows:
pr:
jobs:
- test
- build:
requires:
- test
- build
- integration:
requires:
- build

jobs:
test:
<<: *work_dir
docker:
- *docker_golang
steps:
- checkout
- run: go mod download
- run: go test ./...
build:
<<: *work_dir
docker:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: pr

on:
pull_request:

jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: go test ./...

snapshot:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot
- name: Copy .ini files
run: cp targets.ini rbls.ini ./dist/dnsbl_exporter_linux_amd64
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dnsbl_exporter
path: dist/dnsbl_exporter_linux_amd64
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dnsbl-exporter

[![CircleCI](https://circleci.com/gh/Luzilla/dnsbl_exporter.svg?style=svg)](https://circleci.com/gh/Luzilla/dnsbl_exporter) [![Maintainability](https://api.codeclimate.com/v1/badges/31b95e6c679f60e30bea/maintainability)](https://codeclimate.com/github/Luzilla/dnsbl_exporter/maintainability)
[![CircleCI](https://circleci.com/gh/Luzilla/dnsbl_exporter.svg?style=svg)](https://circleci.com/gh/Luzilla/dnsbl_exporter) [![pr](https://github.com/Luzilla/dnsbl_exporter/actions/workflows/pr.yml/badge.svg)](https://github.com/Luzilla/dnsbl_exporter/actions/workflows/pr.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/31b95e6c679f60e30bea/maintainability)](https://codeclimate.com/github/Luzilla/dnsbl_exporter/maintainability)

This is a server which checks the configured hosts against various DNSBL (sometimes refered to as RBLs).

Expand Down

0 comments on commit 6af7d16

Please sign in to comment.