pihole-exporter/.github/workflows/master.yml

29 lines
517 B
YAML
Raw Normal View History

2021-10-12 11:48:41 +02:00
name: Test (master)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
2020-05-05 08:47:24 +02:00
test:
runs-on: ubuntu-latest
2020-05-05 08:47:24 +02:00
strategy:
matrix:
go_version: [ '1.13', '1.14', '1.15', '1.16', '1.17' ]
steps:
2020-05-05 08:47:24 +02:00
- 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 ./...