pihole-exporter/.github/workflows/master.yml
Vincent Composieux 0985fda8a7
Update master.yml
2021-10-12 11:48:41 +02:00

28 lines
517 B
YAML

name: Test (master)
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [ '1.13', '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 ./...