Skip to content

Merge remote-tracking branch 'ddvk/master' into ddvk-patches #7

Merge remote-tracking branch 'ddvk/master' into ddvk-patches

Merge remote-tracking branch 'ddvk/master' into ddvk-patches #7

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.23.1
uses: actions/setup-go@v5
with:
go-version: 1.23.1
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 ./...