Bump gopkg.in/yaml.v3 from 3.0.0-20200121175148-a6ecf24a6d71 to 3.0.0 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dgo YAML Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.13 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.13 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Set up GolangCI-Lint | |
run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- latest | |
- name: Lint | |
run: ./bin/golangci-lint run ./... | |
- name: Test | |
run: go test -v -covermode=atomic -coverpkg=./... -coverprofile coverage.tmp ./... | |
- name: Test Coverage Check | |
run: | | |
COV=$(go tool cover -func=coverage.tmp | grep -e '^total:\s*(statements)' | awk '{ print $3 }') | |
test $COV = '100.0%' || (echo "Expected 100% test coverage, got $COV" && exit 1) |