mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-15 10:15:16 +01:00
29 lines
509 B
YAML
29 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 ./...
|
|
|