From 7d4fac2798abd142f97366b873b1a228db558971 Mon Sep 17 00:00:00 2001 From: Eric Neidhardt Date: Mon, 10 Aug 2020 20:59:53 +0200 Subject: [PATCH] Added go tags to readme --- .github/workflows/go.yml | 37 +++++++++++++++++++++++++++++++++++++ README.md | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..d31e87f --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,37 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + 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 + run: go build -v . + + - name: Test + run: go test -v . diff --git a/README.md b/README.md index 664baf3..48be696 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + +[![Go Report Card](https://goreportcard.com/badge/github.com/EricNeid/go-sleep?style=flat-square)](https://goreportcard.com/report/github.com/EricNeid/go-sleep) +![Go](https://github.com/EricNeid/go-sleep/workflows/Go/badge.svg) +[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/EricNeid/go-sleep) +[![Release](https://img.shields.io/github/release/EricNeid/go-sleep.svg?style=flat-square)](https://github.com/EricNeid/go-sleep/releases/latest) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EricNeid/go-sleep) # About