prometheus-dnssec-exporter/.github/workflows/go.yml

35 lines
552 B
YAML
Raw Normal View History

2022-10-05 10:36:08 +00:00
name: prometheus-dnssec-exporter
2022-09-24 23:42:14 +00:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
2022-10-05 10:36:08 +00:00
schedule:
- cron: '12 0 * * *'
2022-09-24 23:42:14 +00:00
jobs:
build:
2022-10-05 10:36:08 +00:00
name: Build and Test
2022-09-24 23:42:14 +00:00
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
2022-10-05 10:36:08 +00:00
- name: Check out the code
2022-09-24 23:42:14 +00:00
uses: actions/checkout@v2
- name: Get dependencies
2022-10-05 10:36:08 +00:00
run: go get -v -t -d ./...
2022-09-24 23:42:14 +00:00
- name: Build
run: go build -v .
- name: Test
run: go test -v .