Skip to content

Add Dockerfile, compose.yaml, and an unbound example config (#66) #53

Add Dockerfile, compose.yaml, and an unbound example config (#66)

Add Dockerfile, compose.yaml, and an unbound example config (#66) #53

Workflow file for this run

name: test
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
env:
GO111MODULE: "auto"
jobs:
test:
strategy:
matrix:
go-version:
- 1.20.x
- 1.21.x
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
- name: go coverage
run: |
go test -mod=readonly -v -race -covermode=atomic -coverprofile=coverage.out ./...
- uses: codecov/codecov-action@v3
if: success()
with:
file: ./coverage.out
flags: unbound_exporter_tests
name: unbound_exporter tests