Updated github workflow. (#6)

This commit is contained in:
Christian Joergensen 2022-10-05 06:36:08 -04:00 committed by GitHub
parent 33d7d1aacf
commit f6fd07b159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,17 @@
name: Go name: prometheus-dnssec-exporter
on: on:
push: push:
branches: [ master ] branches: [ master ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
schedule:
- cron: '12 0 * * *'
jobs: jobs:
build: build:
name: Build name: Build and Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -19,16 +21,11 @@ jobs:
go-version: ^1.13 go-version: ^1.13
id: go id: go
- name: Check out code into the Go module directory - name: Check out the code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Get dependencies - name: Get dependencies
run: | run: go get -v -t -d ./...
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build - name: Build
run: go build -v . run: go build -v .