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

29 lines
509 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:
2021-12-22 08:45:08 +01:00
go_version: [ '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 ./...