Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Update README.md

Update README.md #289

Workflow file for this run

name: Go
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- 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: Format
run: |
out="$(gofmt -s -l . )"
if [ -n "$out" ]; then
echo "gofmt needs to be run on the following files:" >&2
echo "$out" >&2
exit 1
fi
- name: Build
run: go build -v .
- name: Tests
run: go test ./...