pihole-exporter/.github/workflows/master.yml
2021-12-30 00:43:34 +01:00

28 lines
509 B
YAML

name: Test (master)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [ '1.14', '1.15', '1.16', '1.17' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go_version }}
- name: Install go dependencies
run: go get -t -v ./...
- name: Run go tests
run: go test -v -cover -race ./...